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)?
preguntada hace 6 meses145 visualizaciones
2 Respuestas
0
AWS
Luca V
respondido hace 6 meses
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.

respondido hace 6 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas