Skip to content

Parsing binary data published by Auto-Event into Redis #28

Answered by iain-anderson
satyam1990 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, the Payload string is base-64 encoded. Decoded it reads:

{
  "apiVersion": "v2",
  "event": {
    "apiVersion": "v2",
    "deviceName": "Temp-Device01",
    "id": "26843afe-b558-4b0c-a2ca-44bd9dc6207f",
    "origin": 1668513120403444500,
    "profileName": "Temp-Device",
    "readings": [
      {
        "apiVersion": "v2",
        "deviceName": "Temp-Device01",
        "id": "765573d8-0d84-4f1f-8651-681d53dc7655",
        "origin": 1668513120403444500,
        "profileName": "Temp-Device",
        "resourceName": "temperature",
        "value": "7",
        "valueType": "Int32"
      }
    ],
    "sourceName": "temperature"
  },
  "statusCode": 200
}

so you should be okay working fr…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@satyam1990
Comment options

Answer selected by satyam1990
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants