1 Answer
- Newest
- Most votes
- Most comments
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.
Relevant content
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago