Cancel
Showing results for 
Search instead for 
Did you mean: 

How to get tags which has reading cycle greater than 1 sec using timeseries api

Pioneer
Pioneer

Hi all,

 

      I am having various datapoints with different reading cycle, but i can only able to get 1 sec reading cycle datapoints in timeseries api, rest is not displaying in timeseries api, How to get the latest values for greater than 1 sec reading cycle datapoints.

 

Expecting reply as soon as possible

1 REPLY 1

Re: How to get tags which has reading cycle greater than 1 sec using timeseries api

Siemens Valued Contributor Siemens Valued Contributor
Siemens Valued Contributor

Hi,

I am assuming you are using following Timeseries API to get "latest value"

 

https://gateway.{region}-{environment}.{mindsphere-domain}/api/iottimeseries/v3/timeseries/{assetId}/{aspectName}?latestValue=true;
 
I believe you are setting "aspectName" as "Reading_cycle_1s" ? If yes, then to get other values for greater than 1s, please check by setting "Reading_cycle_5s" in the GET request for "aspectName".  Looks like you have different aspects like Reading_cycle_1s, Reading_cycle_5 etc..
For details on IoT Timeseries API to get latest values for a given aspectName, please refer to
 
Additionally, if you are looking to get only specific variables (property) from aspect (propertyset) then please use "select" parameter. Details are here
 
https://gateway.{region}-{environment}.{mindsphere-domain}/api/iottimeseries/v3/timeseries/{assetId}/{aspectName}?select=temperature