Skip to content

Instantly share code, notes, and snippets.

@coderbyheart
Created April 25, 2024 10:35
Show Gist options
  • Save coderbyheart/372f30e39e5116f316dcd09220e27c71 to your computer and use it in GitHub Desktop.
Save coderbyheart/372f30e39e5116f316dcd09220e27c71 to your computer and use it in GitHub Desktop.
Encoding binary in AWS IoT Shadow

Meta data

{
  "myBinaryPayload": "7483c2f64e8f085b",
  "myBinaryPayload:coap-content-format": 42
}

Encode as object

{
  "myBinaryPayload": {
    "coap-content-format": 42,
    "content": "7483c2f64e8f085b"
  },
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment