title | description | author | ms.author | ms.date | ms.topic | ms.service | services | ms.custom | zone_pivot_groups |
---|---|---|---|---|---|---|---|---|---|
Tutorial - Connect a client app to Azure IoT Central | This tutorial shows you how to connect a device running either a C, C#, Java, JavaScript, or Python client app to your Azure IoT Central application. | dominicbetts | dobett | 10/14/2024 | tutorial | azure-iot-central | iot-central | mqtt, device-developer, devx-track-extended-java, devx-track-js, devx-track-python, devx-track-azurecli | programming-languages-set-twenty-six |
[!INCLUDE iot-authentication-device-connection-string]
This tutorial shows you how to connect a client application to your Azure IoT Central application. The application simulates the behavior of a temperature controller device. When the application connects to IoT Central, it sends the model ID of the temperature controller device model. IoT Central uses the model ID to retrieve the device model and create a device template for you. You add views to the device template to enable an operator to interact with a device.
In this tutorial, you learn how to:
[!div class="checklist"]
- Create and run the device code and see it connect to your IoT Central application.
- View the simulated telemetry sent from the device.
- Add custom views to a device template.
- Publish the device template.
- Use a view to manage device properties.
- Call a command to control the device.
:::zone pivot="programming-language-ansi-c"
[!INCLUDE iot-central-connect-device-c]
:::zone-end
:::zone pivot="programming-language-csharp"
[!INCLUDE iot-central-connect-device-csharp]
:::zone-end
:::zone pivot="programming-language-java"
[!INCLUDE iot-central-connect-device-java]
:::zone-end
:::zone pivot="programming-language-javascript"
[!INCLUDE iot-central-connect-device-nodejs]
:::zone-end
:::zone pivot="programming-language-python"
[!INCLUDE iot-central-connect-device-python]
:::zone-end
You can use the Raw data view to examine the raw data your device is sending to IoT Central:
:::image type="content" source="media/tutorial-connect-device/raw-data.png" alt-text="Screenshot that shows the raw data view." lightbox="media/tutorial-connect-device/raw-data.png":::
On this view, you can select the columns to display and set a time range to view. The Unmodeled data column shows device data that doesn't match any property or telemetry definitions in the device template.
[!INCLUDE iot-central-clean-up-resources]
If you'd prefer to continue through the set of IoT Central tutorials and learn more about building an IoT Central solution, see:
[!div class="nextstepaction"] Tutorial: Use device groups to analyze device telemetry