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)?
질문됨 6달 전145회 조회
2개 답변
0
AWS
Luca V
답변함 6달 전
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.

답변함 6달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠