Hi, I have setup an IoT Hub account, and configure my device to send data to the IoT hub, I am redirecting the message to storage.
When I monitor the device data using Azure IoT Explorer, I am receiving data in JSON format like below:
{
"body": {
"state": {
"reported": {
"4": 0,
"16": 99198,
"21": 4,
"66": 12549,
"67": 3972,
"68": 0,
"69": 2,
"72": 209,
"73": 210,
"76": "0xA03CA3F64973BE28",
"77": "0xA63C73F649F8C228",
"181": 0,
"182": 0,
"200": 0,
"239": 1,
"240": 0,
"241": 50219,
"ts": 1713336761000,
"pr": 0,
"latlng": "0.000000,0.000000",
"alt": 0,
"ang": 0,
"sat": 0,
"sp": 0,
"evt": 0
}
}
},
"enqueuedTime": "Wed Apr 17 2024 14:53:46 GMT+0800 (Singapore Standard Time)"
}
But When I check the files created in the storage when I re-route the message in the storage, I am getting the following format. I wonder how can I receive the original message format instead of the encoded format?
{"EnqueuedTimeUtc":"2024-04-17T06:49:17.8780000Z","Properties":{},"SystemProperties":{"connectionDeviceId":"1234567890","connectionAuthMethod":"{\"scope\":\"hub\",\"type\":\"sas\",\"issuer\":\"iothub\",\"acceptingIpFilterRule\":null}","connectionDeviceGenerationId":"638487721780314648","enqueuedTime":"2024-04-17T06:49:17.8780000Z"},"Body":"eyJzdGF0ZSI6eyJyZXBvcnRlZCI6eyJ0cyI6MTcxMzMzNjQ5MTAwMCwicHIiOjAsImxhdGxuZyI6IjAuMDAwMDAwLDAuMDAwMDAwIiwiYWx0IjowLCJhbmciOjAsInNhdCI6MCwic3AiOjAsImV2dCI6MCwiMjM5IjoxLCIyNDAiOjAsIjIxIjo0LCIyMDAiOjAsIjY5IjoyLCIxODEiOjAsIjE4MiI6MCwiNjYiOjEyNDk0LCI2NyI6Mzk2OSwiNjgiOjAsIjI0MSI6NTAyMTksIjE2Ijo5OTE5OCwiNzIiOjIxMCwiNzMiOjIxMSwiNCI6MCwiNzYiOiIweEEwM0NBM0Y2NDk3M0JFMjgiLCI3NyI6IjB4QTYzQzczRjY0OUY4QzIyOCJ9fX0="}
Thanks for any input for my queries.
Best regards,
Yap