Azure IoT Hub
myDevices digests Azure IoT Hub events with the following documentation. A JSON payload with the following requirements should be used for proper integration. See the IoT Hub documentations for guidelines on how to connect and send telemetry data.
Helpful links
myDevices Message Schema
When sending telemetry messages to IoT Hub, follow the JSON schema below.
| Attribute | Type | Sample |
|---|---|---|
| eui | String | unique hardware identifier |
| format | String | json or hex |
| data | Array | An array list of Cayenen LPP objects see below. |
The data attribute must be a JSON array of objects, each element having channel, value, type and unit porperties. Refer to the list of our supported data types for the type and unit properties.
Topic
devices/{device-id}/messages/events/
Example Message Body
{
"eui": "ble-stag-01172021",
"format": "json",
"data": [{
"channel": 5,
"unit": "p",
"value": 100,
"type": "",
"name": "Battery",
"hardware_id": "000a0032874326321"
},
{
"channel": 100,
"type": "rssi",
"unit": "dbm",
"value": -64,
"name": "Signal",
"hardware_id": "000a0032874326321"
},
{
"channel": 5,
"unit": "p",
"value": 82,
"type": "",
"name": "Battery",
"hardware_id": "000a0032874326323"
},
{
"channel": 100,
"type": "rssi",
"unit": "dbm",
"value": -73,
"name": "Signal",
"hardware_id": "000a0032874326323"
}
]
}