Skip to content

Latest commit

 

History

History
73 lines (48 loc) · 3.21 KB

tutorial-send-telemetry-iot-hub.md

File metadata and controls

73 lines (48 loc) · 3.21 KB
titledescriptionauthorms.authorms.servicems.topicms.datems.collectionzone_pivot_groupsms.customms.devlang
Send device telemetry to Azure IoT Hub tutorial
This tutorial shows device developers how to connect a device securely to Azure IoT Hub. 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.
dominicbetts
dobett
azure-iot
tutorial
1/10/2025
embedded-developer, application-developer
iot-develop-set1
mode-other, devx-track-azurecli, devx-track-extended-java, devx-track-python, linux-related-content, devx-track-js
azurecli

Tutorial: Send telemetry from an IoT Plug and Play device to Azure IoT Hub

:::zone pivot="programming-language-ansi-c"

[!INCLUDE iot-develop-send-telemetry-iot-hub-c]

:::zone-end

:::zone pivot="programming-language-csharp"

[!INCLUDE iot-develop-send-telemetry-iot-hub-csharp]

:::zone-end

:::zone pivot="programming-language-java"

[!INCLUDE iot-develop-send-telemetry-iot-hub-java]

:::zone-end

:::zone pivot="programming-language-nodejs"

[!INCLUDE iot-develop-send-telemetry-iot-hub-node]

:::zone-end

:::zone pivot="programming-language-python"

[!INCLUDE iot-develop-send-telemetry-iot-hub-python]

:::zone-end

Clean up resources

If you no longer need the Azure resources created in this tutorial, you can use the Azure CLI to delete them.

Important

Deleting a resource group is irreversible. The resource group and all the resources contained in it are permanently deleted. Make sure that you do not accidentally delete the wrong resource group or resources.

To delete a resource group by name:

  1. Run the az group delete command. This command removes the resource group, the IoT Hub, and the device registration you created.

    az group delete --name MyResourceGroup 
  2. Run the az group list command to confirm the resource group is deleted.

    az group list 

Next steps

In this tutorial, 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 CLI to create an Azure IoT hub and a device instance. Then you used an Azure IoT device SDK to create a temperature controller, connect it to the hub, and send telemetry. You also used Azure CLI to monitor telemetry.

As a next step, explore the following articles to learn more about building device solutions with Azure IoT.

[!div class="nextstepaction"] Control a device connected to an IoT hub

close