Send Data on IoT Gateway Cloud

You can send measures from the device to the IoT Gateway Cloud using MQTT or REST. Moreover, the commands are sent to the device using MQTT.

When you send measurement data from the device, data is ingested into IoT only for those properties of the capability specified in the message for a specific timestamp. In the subsequent message, if you do not provide those properties for which data already exists and provide the same timestamp, the service replaces the existing data with latest one. As a consequence, values for those properties not specified in the latest message are deleted. The following table illustrates the behavior:

Action Request/Response Payload Description
First measurement data sent from the device
{
	"capabilityAlternateId": 19,
	"sensorAlternateId": "124223",
	"timestamp": "1632651000000",     
	"measures": [{
		"roll": "27.63",
		"pitch": "28.63" 
	}]
}
Data ingested only for properties roll and pitch for the timestamp 2021-09-26T10:10:00Z.
Read data
"value": [
        {
            "_time": "2021-09-26T10:10:00.000Z",
            "roll": "27.63",
            "pitch": "28.63",
            "yaw": null
        }
    ]
Service assigns null value for property yaw as it was not part of the measurement data sent to IoT.
Another measurement data sent from the device
{
	"capabilityAlternateId": 19,
	"sensorAlternateId": "124223",
	"timestamp": "1632651000000",     
	"measures": [{
		"roll": "27.63",
		"yaw": "29.63"
	}]
}
Data is ingested only for properties roll and yaw for the timestamp 2021-09-26T10:10:00Z.
Read data
    "value": [
        {
            "_time": "2021-09-26T10:10:00.000Z",
            "roll": "27.63",
            "pitch": null,
            "yaw": “29.63”
        }
    ]
Already existing data for propery pitch is deleted and null value assigned for property pitch as it was not part of the latest measurement data sent to IoT.