title | description | author | ms.author | ms.service | ms.topic | ms.date | ms.collection | zone_pivot_groups | ms.custom |
---|---|---|---|---|---|---|---|---|---|
Quickstart - connect a device and send telemetry to Azure IoT Central |
This quickstart shows device developers how to connect a device securely to Azure IoT Central. You use an Azure IoT device SDK for C, C#, Python, Node.js, or Java, to build a device client for Windows, Linux, or Raspberry Pi (Raspbian), then you connect and send telemetry. |
timlt |
timlt |
iot-develop |
quickstart |
04/27/2021 |
embedded-developer, application-developer |
iot-develop-set1 |
mode-other, contperf-fy22q2 |
Applies to: Device application developers
:::zone pivot="programming-language-ansi-c"
[!INCLUDE iot-develop-send-telemetry-central-c]
:::zone-end
:::zone pivot="programming-language-csharp"
[!INCLUDE iot-develop-send-telemetry-central-csharp]
:::zone-end
:::zone pivot="programming-language-java"
[!INCLUDE iot-develop-send-telemetry-central-java]
:::zone-end
:::zone pivot="programming-language-nodejs"
[!INCLUDE iot-develop-send-telemetry-central-nodejs]
:::zone-end
:::zone pivot="programming-language-python"
[!INCLUDE iot-develop-send-telemetry-central-python]
:::zone-end
After the device connects to IoT Central, it begins sending telemetry. You can view the telemetry and other details about connected devices in IoT Central.
In IoT Central, select Devices, click your device name, then select the Overview tab. This view displays a graph of the temperatures from the two thermostat devices.
:::image type="content" source="media/quickstart-send-telemetry-central/iot-central-telemetry-output-overview.png" alt-text="IoT Central device telemetry overview":::
Select the Raw data tab. This view displays the telemetry each time a thermostat reading is sent.
:::image type="content" source="media/quickstart-send-telemetry-central/iot-central-telemetry-output-raw.png" alt-text="IoT Central device telemetry raw output":::
Your device is now securely connected and sending telemetry to Azure IoT.
If you no longer need the IoT Central resources created in this quickstart, you can delete them. Optionally, if you plan to continue following the documentation in this guide, you can keep the application you created and reuse it for other samples.
To remove the Azure IoT Central sample application and all its devices and resources:
- Select Administration > Your application.
- Select Delete.
In this quickstart, you learned a basic Azure IoT application workflow for securely connecting a device to the cloud and sending device-to-cloud telemetry. You used Azure IoT Central to create an application and a device instance. Then you used an Azure IoT device SDK to create a temperature controller, connect to IoT Central, and send telemetry. You also used IoT Central to monitor the telemetry.
As a next step, explore the following articles to learn more about building device solutions with Azure IoT.
[!div class="nextstepaction"] Send telemetry to Azure IoT hub [!div class="nextstepaction"] Create an IoT Central application