question

PetrMaslak-0806 avatar image
0 Votes"
PetrMaslak-0806 asked ·

Download file To IoT Edge device

Hallo,
is it possible to download greater file to IoT Edge device? Messages can have maximal size of 4KB. I would like to use endpoint of Iot-Hub.
Thank you

azure-filesazure-iot-hub
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SandervandeVelde42 avatar image
0 Votes"
SandervandeVelde42 answered ·

Hello @PetrMaslak-0806 ,

Messages sent from (azure iot edge) devices to the cloud using an IoT Hub are limited to the size of 256KB. These messages are measured in 4KB parts to check the daily consumption limits.

There are multiple ways to send C2D messages with different limitations:

  1. Direct methods, max size 128KB

  2. desired properties, max size 32KB (shared with other logic; it's not advertised for large chunks of information)

  3. cloud-to-device messages, max size 64KB

So, you are able to send larger messages.

Check the pros and cons of all three ways, before you decide what to do.


This functionality is specialized in secure device registration and D2C / C2D messaging. If you wish to send actual files from the cloud to the edge, you have to bring your own logic implementation.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.