Skip to content

Files

Latest commit

b3e747a · Mar 9, 2022

History

History
54 lines (34 loc) · 2.25 KB

quickstart-control-device.md

File metadata and controls

54 lines (34 loc) · 2.25 KB
title description author ms.author ms.service services ms.topic ms.custom ms.date zone_pivot_groups
Quickstart - Control a device from Azure IoT Hub | Microsoft Docs
In this quickstart, you run two sample applications. One application is a service application that can remotely control devices connected to your hub. The other application simulates a device connected to your hub that can be controlled remotely.
kgremban
kgremban
iot-hub
iot-hub
quickstart
mvc
mqtt
Role: Cloud Development
devx-track-azurecli
mode-other
02/25/2022
iot-hub-set1

Quickstart: Control a device connected to an IoT hub

In this quickstart, you use a direct method to control a simulated device connected to your IoT hub. IoT Hub is an Azure service that lets you manage your IoT devices from the cloud and ingest high volumes of device telemetry to the cloud for storage or processing. You can use direct methods to remotely change the behavior of devices connected to your IoT hub.

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

[!INCLUDE quickstart-control-device-dotnet]

:::zone-end

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

[!INCLUDE quickstart-control-device-java]

:::zone-end

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

[!INCLUDE quickstart-control-device-node]

:::zone-end

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

[!INCLUDE quickstart-control-device-python]

:::zone-end

Clean up resources

[!INCLUDE iot-hub-quickstarts-clean-up-resources]

Next steps

In this quickstart, you called a direct method on a device from a service application, and responded to the direct method call in a simulated device application.

To learn how to route device-to-cloud messages to different destinations in the cloud, continue to the next tutorial.

[!div class="nextstepaction"] Tutorial: Route telemetry to different endpoints for processing