Welcome to Azure IoT
Azure Internet of Things (IoT) services enable you to connect, monitor, and manage billions of IoT assets. Build end‑to‑end IoT solutions using a fully managed, secure, and scalable cloud platform.
Key Capabilities
- Device Connectivity: Secure bi‑directional communication between devices and the cloud.
- Data Ingestion & Processing: Real‑time analytics with Azure Stream Analytics and Azure Functions.
- Device Management: Provision, update, and monitor devices at scale.
- Edge Computing: Run AI and analytics on devices with Azure IoT Edge.
- Integration: Seamlessly connect to Azure services like Cosmos DB, Power BI, and Machine Learning.
Getting Started
Follow the Quickstart guide to set up your first IoT Hub and send telemetry from a simulated device.
Sample Code
// Install the Azure IoT SDK
npm install azure-iot-device azure-iot-device-mqtt
// Simple telemetry sender
const { Client } = require('azure-iot-device');
const { Mqtt } = require('azure-iot-device-mqtt');
const connectionString = process.env.IOTHUB_DEVICE_CONNECTION_STRING;
const client = Client.fromConnectionString(connectionString, Mqtt);
client.open()
.then(() => {
const message = new Message(JSON.stringify({ temperature: 22.5 }));
return client.sendEvent(message);
})
.then(() => console.log('Message sent'))
.catch(err => console.error('Error:', err));