Unable to send b64encoded image data to MQTT #409
-
Hello Attached is the error log when using b64 encoded image data and success log when sending simple "Hello World" |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
By default, IoT Core has a 128K message size limit for publishes. While that may be relaxable to a certain extent on a per-account basis, there are substantial restrictions on what can be done with publishes that exceed the limit even if the limit is raised (for example, larger payloads may only be processed by rules engine and won't get sent to subscribers). You may need to come up with a part-based scheme on top of MQTT. There has been some IoT Core specific work on something like this (https://docs.aws.amazon.com/iot/latest/developerguide/mqtt-based-file-delivery.html) but the SDKs do not yet support it. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
By default, IoT Core has a 128K message size limit for publishes. While that may be relaxable to a certain extent on a per-account basis, there are substantial restrictions on what can be done with publishes that exceed the limit even if the limit is raised (for example, larger payloads may only be processed by rules engine and won't get sent to subscribers).
You may need to come up with a part-based scheme on top of MQTT. There has been some IoT Core specific work on something like this (https://docs.aws.amazon.com/iot/latest/developerguide/mqtt-based-file-delivery.html) but the SDKs do not yet support it.