Aws iot-rule-protobuf

0

Hi i am trying to test protobuf capability of aws-iot rule. i have configured everything But i am stuck at payload type. So lets say i have protbuf encoded bytes as follow:

payload="\n3\ræ\x87EA\x15\x03O¯B\x1d\x00\x00\x00\x00%\x00\x00ÈB(\x001\x00\x00\x00\x00\x00\x00\x00\x008\x00E\x00\x00\x00\x00H\x00U\x00\x00\x00\x00X\x00`\x00h\x00"

(NOTE: 'payload=' is not being sent. I wrote here just to show that this is the payload)

And when i am trying to publish this bytes as it is then configured protobuf iot-rule is throwing error with reason "JsonParseError".

  1. So is my payload correct?
  2. What exacty is binary payload or its format in aws (an example would be good)?
asked 6 months ago130 views
2 Answers
0
AWS
Luca V
answered 5 months ago
0

Hi Thanks for sharing the blogs. They are useful. I'm still unable to work with binary payload. But i have implemented using base64 string in json payload:

{
"a":"base64string"
}

This works.

answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions