Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:mervis-scada:82-iot-api [2019/05/27 07:25]
m.kulvejt
en:mervis-scada:82-iot-api [2021/04/08 13:04] (current)
Line 47: Line 47:
 </code> </code>
  
 +  * Use always UTC form of the timestamp. Otherwise a default conversion will occurr. Default conversion can depend on many factors and is not reliable. Even if it works right now for your time zone it can change in the future as we upgrade/update/move the IT infrastructure.
 +  * Available data types:
 +    * float64
 +    * string
 +    * int64
 +    * uint64
 +    * bool
 +    * datetime
  
  
Line 58: Line 66:
    "name": "Mervis Av., Building A",       //User description of the site or controller    "name": "Mervis Av., Building A",       //User description of the site or controller
    "timestamp": "2019-04-18T15:58:59Z",    //Default timestamp of the values. May be overridden in the "Values" section    "timestamp": "2019-04-18T15:58:59Z",    //Default timestamp of the values. May be overridden in the "Values" section
-   "period": "PT5M",                       //Default sample interval. May be overridden in the "Values" section+   "period": "PT5M",                       //Default sample interval. May be overridden in the "Values" section. https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
    "levels": [{                            //Levels are used to further identify data    "levels": [{                            //Levels are used to further identify data
      "id": 1,                              //Here is a list of "known" Levels that can be later      "id": 1,                              //Here is a list of "known" Levels that can be later
  • © Energocentrum Plus, s.r.o. 2017 - 2024