Azure IoT Hub

Azure IoT Hub is a fully managed service that enables reliable, bi-directional connectivity between millions of Internet of Things (IoT) devices and the cloud. It acts as a central message hub for IoT solutions, providing device-to-cloud and cloud-to-device communication, device management, and security.

Key Features

Use Cases

Core Concepts

Getting Started

To begin using Azure IoT Hub, you'll need to:

  1. Create an IoT Hub instance in the Azure portal.
  2. Register devices within your IoT Hub.
  3. Install and configure the Azure IoT SDK on your device to establish a connection.

API Reference Snippet (Device-to-Cloud Message)

Device Client Code Example (Conceptual)

Sending telemetry data from a device to IoT Hub:


// Assuming 'deviceClient' is an initialized IoT Hub device client

const message = {
    deviceId: "myDevice",
    temperature: 25.5,
    humidity: 60.2
};

deviceClient.sendEvent(message, function (err) {
    if (err) {
        console.error('Error sending message: ' + err.toString());
    } else {
        console.log('Message sent successfully.');
    }
});
                    

For detailed API documentation, SDKs, and tutorials, please refer to the relevant sections in the sidebar.

Explore IoT Hub SDKs View Tutorials