Large file transfer over AWS IoT Core

0

Since the block data size to publish on AWS IoT Core is 128 KB, and according to AWS documentation, it can be increased up to 24 MB, but I don't know how to implement it on both the publishing and subscribing sides. Has anyone had experience with this?

Elham
asked 7 months ago500 views
1 Answer
0

Hi. The maximum size of one MQTT payload is 128KB. That cannot be increased. And many IoT devices do not have sufficient RAM to be able to challenge that limit anyway.

The 24MB limit is the maximum size of an MQTT file stream. This is a feature built on top of MQTT, and is mainly used by AWS IoT OTA updates. This feature only works in the cloud-to-device direction.

Since MQTT messages are metered, it's generally not so cost-effective to transfer large files over MQTT, at least not compared to HTTP. So HTTP is often used. This blog details such a pattern, using HTTP, Amazon S3 and presigned URLs: https://aws.amazon.com/blogs/iot/securely-ingesting-large-sized-payloads-from-iot-devices-to-the-aws-cloud/. You can do similar to move large files from cloud-to-device, and AWS IoT Jobs may be of interest too.

What size files will you transfer? Cloud-to-device, device-to-cloud, or both? What sort of device do you have (processing power and memory)? What device software or client will your device run?

profile pictureAWS
EXPERT
Greg_B
answered 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions