Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 2.69 KB

iot-hub-devguide-messaging.md

File metadata and controls

44 lines (28 loc) · 2.69 KB
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
Role: Cloud Development

Send device-to-cloud and cloud-to-device messages with IoT Hub

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.

Sending device-to-cloud messages to IoT Hub

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.

Sending cloud-to-device messages from IoT Hub

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.

Choosing the right type of IoT Hub 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.

Next steps