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)?
gefragt vor 6 Monaten145 Aufrufe
2 Antworten
0
AWS
Luca V
beantwortet vor 6 Monaten
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.

beantwortet vor 6 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen