我正在将数据从Azure EDGE发送到Azure IOT Hub。我已经配置了到Blob存储端点的路由。我收到消息,但是当我查看JSON文件时,主体已加密。我已将端点配置为JSON
{"EnqueuedTimeUtc":"2019-08-30T19:33:53.4120000Z","Properties":{"sequenceNumber":"88","batchId":"16212de8-b502-471d-97d5-55edc6f384f6"},"SystemProperties":{"connectionDeviceId":"xxxE-01","connectionModuleId":"SimulatedTemperatureSensor","connectionAuthMethod":"{\"scope\":\"module\",\"type\":\"sas\",\"issuer\":\"iothub\",\"acceptingIpFilterRule\":null}","connectionDeviceGenerationId":"637027812073417448","enqueuedTime":"2019-08-30T19:33:53.4120000Z"},"Body":"eyJtYWNoaW5lIjp7InRlbXBlcmF0dXJlIjo2Ny45NTc3MzU3MzMzNDIyNzUsInByZXNzdXJlIjo2LjM0OTYxNTQ2MzI5MjE1NzV9LCJhbWJpZW50Ijp7InRlbXBlcmF0dXJlIjoyMC44Njk4MzEwMzQ2MjAyMTIsImh1bWlkaXR5IjoyNH0sInRpbWVDcmVhdGVkIjoiMjAxOS0wOC0zMFQxOTozMzo1My40MTk1MDc4WiJ9"}
答案 0 :(得分:2)
示例中的主体是base64编码的json格式的文本:
{"machine":{"temperature":67.957735733342275,"pressure":6.3496154632921575},"ambient":{"temperature":20.869831034620212,"humidity":24},"timeCreated":"2019-08-30T19:33:53.4195078Z"}
答案 1 :(得分:1)
我已经看到,如果邮件的内容编码属性设置不正确,会发生这种情况吗?邮件上的设置是否正确。其中大多数是utf-8。