Interface to/from sensors/gateways
<orgShortName>
<serial>
(a serial is mapped to a location/site)Topic: <orgShortName>/hd/<serial>
[{ "processing_level": 0, "sensor_id": "Temperature", "timestamp": "2019-08-06T13:02:59.975Z", "value": 7 },{ "processing_level": 0, "sensor_id": "Temperature", "timestamp": "2019-08-06T13:03:58.478Z", "value": 11 }, { "processing_level": 0, "sensor_id": "Temperature", "timestamp": "2019-08-06T13:04:59.975Z", "value": 56 },{ "processing_level": 0, "sensor_id": "Temperature", "timestamp": "2019-08-06T13:05:58.478Z", "value": 50 }] |
Attribute name | Data type | Comments |
---|---|---|
| String | Unique sensor identifier |
| String | indicates if there was a problem during the processing on the data. the value will be tagged. 0 mean no problem |
| String | ISO 8601 (with Timezone Information) in case of an empty string would the server would generate a now() timestamp |
| Number, String, Boolean | Measurement taken |
[ {"timestamp": "", "sensor_id": "device_gps_location", "error_code": 0, "value": "47.3597222222,13.5955555556"} ] |
Topic: <orgShortName>/events/<serial>
[{ "output": "eval based on 22", "sensor_id": "Temperature", "state": "HOT", "timestamp": "2016-01-01T19:02:59.975+0100", "severity": 0 }] |
we recommend to send events immediately
events can contain values as "hd" array element (preferably values that had an influence to the new event)
[{ "hd": [{ "processing_level": 0, "sensor_id": "Temperature", "timestamp": "", "value": -10 }], "output": "eval based on -10", "sensor_id": "Temperature", "state": "COLD", "timestamp": "", "severity": 200 }] |
Attribute name | Data type | Comments |
---|---|---|
sensor_id | String | |
processing_level | String | |
timestamp | String | |
state | String | |
severity | Number | by default this mapping 0 → OK, 0 < severity < 100 → WARNING, 100<x<200 → CRITICAL (DANGER) |
output | String | detailed info describing the state |
hd | Array | Historical data, array of historical data elements |
Topic: <orgShortName>/sys_msg/<serial>
[{ "timestamp": "", "type": "job_status", "severity": 0, "code": 123, "output_short": "test", "output_long": "Job successfuly started" }] |
Attribute name | Data type | Comments |
---|---|---|
timestamp | String | |
type | String | |
severity | Number | |
code | Number | |
output_short | String | |
output_long | String | |
references | Object | free list of reference objects |
Topic: <orgShortName>/vs_data/<serial>/<sensor_id>
Topic: <orgShortName>/imgdata/<serial>
open
Topic: cloud/<serial>/exec_action/<actuator_id>
{ "action_id": "SimulatedSensor", "exec_uid": "1bb083fc-8924-4324-8971-db22513ca78c", "origin": "SSCServices", "user_id": 70752, "command_id": "OK" } |