File uploads with IoT Hub

In most communication from IoT devices, it will send a relatively small message to IoT Hub, (up to 4 KB max allowed message size), such as telemetry data, readings, and so on. However, sometimes, we might have the need to send larger files, such as images, log files, or batch telemetry data in some scenarios.

IoT Hub provides a file ingestion method, which helps to solve this problem. Instead of sending messages through IoT Hub itself, IoT Hub instead acts as a dispatcher to an associated Azure storage configured account in IoT Hub. It uploads the files to the storage account, and then sends a notification message informing that the file ingestion has been completed. The following image is from the Microsoft Azure IoT documentation that shows how file ingestion works:

File ingestion

Devices can initiate file uploads by sending a notification through a device-facing endpoint (/devices/{deviceId}/files). When a device notifies IoT Hub of an upload having been completed, IoT Hub generates file upload notifications that can be received through a service-facing endpoint (/messages/servicebound/filenotifications) as messages, and then they are further processed as per backend application logic.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.17.184.90