1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
2
Hi. InvalidRequest
is defined in the documentation as:
The request is generally identified as malformed. For more information, see the error message.
So it seems likely the payload you sent in the get
is incorrect. Please review that: https://docs.aws.amazon.com/iot/latest/developerguide/mqtt-based-file-delivery-in-devices.html#mqtt-based-file-delivery-get-getstream
The AWS IoT Device SDK for Embedded C includes an OTA library that has an implementation of MQTT file streaming. It may be useful to review how it constructs a GetStream request: https://github.com/aws/ota-for-aws-iot-embedded-sdk/blob/main/source/ota_cbor.c#L238
If you are developing this in C for a device firmware update, I recommend you instead use the AWS IoT C SDK libraries.
관련 콘텐츠
- AWS 공식업데이트됨 3년 전