title | description | author | manager | ms.author | ms.service | services | ms.topic | ms.date | ms.custom | |
---|---|---|---|---|---|---|---|---|---|---|
Understand Azure IoT Hub messaging | Microsoft Docs |
Developer guide - device-to-cloud and cloud-to-device messaging with IoT Hub. Includes information about message formats and supported communications protocols. |
wesmc7777 |
philmea |
wesmc |
iot-hub |
iot-hub |
conceptual |
01/29/2018 |
|
IoT Hub allows for bi-directional communication with your devices. Use IoT Hub messaging to communicate with your devices by sending messages from your devices to your solutions back end and sending commands from your IoT solutions back end to your devices. Learn more about the IoT Hub message format.
IoT Hub has a built-in service endpoint that can be used by back-end services to read telemetry messages from your devices. This endpoint is compatible with Event Hubs and you can use standard IoT Hub SDKs to read from this built-in endpoint.
IoT Hub also supports custom endpoints that can be defined by users to send device telemetry data and events to Azure services using message routing.
You can send cloud-to-device messages from the solution back end to your devices.
[!INCLUDE iot-hub-basic]
Core properties of IoT Hub messaging functionality are the reliability and durability of messages. These properties enable resilience to intermittent connectivity on the device side, and to load spikes in event processing on the cloud side. IoT Hub implements at least once delivery guarantees for both device-to-cloud and cloud-to-device messaging.
Use device-to-cloud messages for sending time series telemetry and alerts from your device app, and cloud-to-device messages for one-way notifications to your device app.
-
Refer to Device-to-cloud communication guidance to choose between device-to-cloud messages, reported properties, or file upload.
-
Refer to Cloud-to-device communication guidance to choose between cloud-to-device messages, desired properties, or direct methods.
-
Learn about IoT Hub message routing.
-
Learn about IoT Hub cloud-to-device messaging.