AWS IoT Data Type Error

0

Greetings, We are using AWS IoT Core services for collecting data from our telematics device. The data is further stored into the DynamoDb database via a rule engine. On publishing the shadow document to the broker the one value field (uint64_t) gets changed on the . The value retains its original value in the dynamoDb.

Device Shadow Expected

{
  "state": {
    "reported": {
      "vsr": 70931715605954314
       }
    }
}

Device Shadow Actual

{
  "state": {
    "reported": {
      "vsr": 70931715605954310
       }
    }
}

Is there any chance there is some data conversion issue on AWS IoT Core side. I have a thingsboard client connected to the endpoint as well it is also receiving the manipulated device shadow

Regards, Altamash

  • do you publish the value { "state": { "reported": { "vsr": 70931715605954314 } }} to the shadow update topic: $aws/things/yourdeviceuniqueid/shadow/name/update on the device towards IoT-Core? or are you writing the shadow from IoT-Core to be received by your device

    • what is received by IoT-Core on that topic in the AWS IoT -> MQTT test client ?
    • could it be there is another device/service publishing to the same topic ?
  • @clogwog Along with the said vsr key there are certain other key value pair that are published by me on the said topic via mqtt protocol to the broker. (-) The value received on the AWS IoT -> Test client is similar (corrupted) to the one shown in device shadow. But the when i see the data in dynamo db the data is intact and is equivalent to the one sent from device. For pushing data to dynamoDb im using rule engine. (-) A unique device publishes only to its own topic. Most likely the issue seems to be large data type because i have seen a similar behaviour when publishing data from aws iot mqtt test client to the device shadow. What i dont know is how to fix this issue. Any suggestion is appreciated Regards, Altamash

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인