Hi Thomas,
The following is my example for sending a telemetry data (using the current protocol MQTT version 3.1.1) to the IoT Central App:
device3, modelId=dtmi:com:example:TemperatureController;2
topic:
devices/device3/messages/events/$.ct=application%2Fjson&$.ce=utf-8&iothub-creation-time-utc=2022-02-07T09:29:05.681Z
payload:
{
"workingSet":38.36
}
IoT Central App, Raw data:
Thanks
Roman
Hi Thomas,
In your case, when your IoT Central App is based on the device timestamp, you can use a message property iothub-creation-time-utc for sending a device timestamp.
Note, that this timestamp will be in the raw data as an _eventcreationtime property and it is acceptable by IoT Central App features.
Thanks
Roman
Thanks to all your answers !
I tried 2 versions of JSON payloads, but no one works.
Remember that I am sending data through MQTT. That's why I tried to use "creation-time" instead of "iothub-creation-time-utc". As described here:
https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-mqtt-5-reference
Any other suggestion ?
Thanks again !
Thomas