You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this quickstart, you learn a basic Azure IoT application development workflow. You use the Azure CLI and IoT Explorer to create an Azure IoT hub and a device. Then you use an Azure IoT device SDK sample to run a simulated temperature controller, connect it securely to the hub, and send telemetry.
14
+
In this quickstart, you learn a basic Azure IoT application development workflow. You use the Azure CLI and IoT Explorer to create an Azure IoT hub and a device. Then you use an Azure IoT device SDK sample to run a temperature controller, connect it securely to the hub, and send telemetry. The temperature controller sample application runs on your local machine and generates simulated sensor data to send to IoT Hub.
15
15
16
16
## Prerequisites
17
17
@@ -37,9 +37,9 @@ Install the following prerequisites on your development machine except where not
In this section, you'll use the C# SDK to send messages from a simulated device to your IoT hub. You'll run a sample that implements a temperature controller with two thermostat sensors.
42
+
In this section, you'll use the C# SDK to send messages from a device to your IoT hub. You'll run a sample that implements a temperature controller with two thermostat sensors.
43
43
44
44
1. Open a new console such as Windows CMD, PowerShell, or Bash. In the following steps, you'll use this console to install the Node.js SDK and work with Node.js sample code.
45
45
@@ -72,7 +72,7 @@ In this section, you'll use the C# SDK to send messages from a simulated device
72
72
73
73
This command installs the proper dependencies as specified in the *TemperatureController.csproj* file.
74
74
75
-
1. Set both of the following environment variables, to enable your simulated device to connect to Azure IoT.
75
+
1. Set both of the following environment variables, to enable your device to connect to Azure IoT.
76
76
* Set an environment variable called `IOTHUB_DEVICE_CONNECTION_STRING`. For the variable value, use the device connection string that you saved in the previous section.
77
77
* Set an environment variable called `IOTHUB_DEVICE_SECURITY_TYPE`. For the variable, use the literal string value `connectionString`.
78
78
@@ -134,7 +134,7 @@ To read telemetry sent by individual device components, you can use the plug and
134
134
135
135
To view device telemetry with Azure CLI:
136
136
137
-
1. Run the [az iot hub monitor-events](/cli/azure/iot/hub#az_iot_hub_monitor_events) command to monitor events sent from the simulated device to your IoT hub. Use the names that you created previously in Azure IoT for your device and IoT hub.
137
+
1. Run the [az iot hub monitor-events](/cli/azure/iot/hub#az_iot_hub_monitor_events) command to monitor events sent from the device to your IoT hub. Use the names that you created previously in Azure IoT for your device and IoT hub.
138
138
139
139
```azurecli
140
140
az iot hub monitor-events --output table --device-id mydevice --hub-name {YourIoTHubName}
In this quickstart, you learn a basic Azure IoT application development workflow. You use the Azure CLI and IoT Explorer to create an Azure IoT hub and a device. Then you use an Azure IoT device SDK sample to run a simulated temperature controller, connect it securely to the hub, and send telemetry.
14
+
In this quickstart, you learn a basic Azure IoT application development workflow. You use the Azure CLI and IoT Explorer to create an Azure IoT hub and a device. Then you use an Azure IoT device SDK sample to run a temperature controller, connect it securely to the hub, and send telemetry. The temperature controller sample application runs on your local machine and generates simulated sensor data to send to IoT Hub.
15
15
16
16
## Prerequisites
17
17
- If you don't have an Azure subscription, [create one for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
@@ -25,16 +25,16 @@ In this quickstart, you learn a basic Azure IoT application development workflow
In this section, you use the Java SDK to send messages from a simulated device to your IoT hub. You'll run a sample that implements a temperature controller with two thermostat sensors.
28
+
## Run a device
29
+
In this section, you use the Java SDK to send messages from a device to your IoT hub. You'll run a sample that implements a temperature controller with two thermostat sensors.
30
30
31
31
### Configure your environment
32
32
1. Open a console to install the Azure IoT Java device SDK, build, and run the code sample. You'll use this console in the following steps.
33
33
34
34
> [!NOTE]
35
35
> If you're using a local installation of Azure CLI, you might now have two console windows open. Be sure to enter the commands in this section in the console you just opened, not the one that you've been using for the CLI.
36
36
37
-
1. Set the following environment variables, to enable your simulated device to connect to Azure IoT.
37
+
1. Set the following environment variables, to enable your device to connect to Azure IoT.
38
38
* Set an environment variable called `IOTHUB_DEVICE_CONNECTION_STRING`. For the variable value, use the device connection string that you saved in the previous section.
39
39
* Set an environment variable called `IOTHUB_DEVICE_SECURITY_TYPE`. For the variable, use the literal string value `connectionString`.
40
40
@@ -106,7 +106,7 @@ To read telemetry sent by individual device components, you can use the plug and
106
106
107
107
To view device telemetry with Azure CLI:
108
108
109
-
1. Run the [az iot hub monitor-events](/cli/azure/iot/hub#az_iot_hub_monitor_events) command to monitor events sent from the simulated device to your IoT hub. Use the names that you created previously in Azure IoT for your device and IoT hub.
109
+
1. Run the [az iot hub monitor-events](/cli/azure/iot/hub#az_iot_hub_monitor_events) command to monitor events sent from the device to your IoT hub. Use the names that you created previously in Azure IoT for your device and IoT hub.
110
110
111
111
```azurecli
112
112
az iot hub monitor-events --output table --device-id mydevice --hub-name {YourIoTHubName}
In this quickstart, you learn a basic Azure IoT application development workflow. You use the Azure CLI and IoT Explorer to create an Azure IoT hub and a device. Then you use an Azure IoT device SDK sample to run a simulated temperature controller, connect it securely to the hub, and send telemetry.
14
+
In this quickstart, you learn a basic Azure IoT application development workflow. You use the Azure CLI and IoT Explorer to create an Azure IoT hub and a device. Then you use an Azure IoT device SDK sample to run a temperature controller, connect it securely to the hub, and send telemetry. The temperature controller sample application runs on your local machine and generates simulated sensor data to send to IoT Hub.
15
15
16
16
## Prerequisites
17
17
This quickstart runs on Windows, Linux, and Raspberry Pi. It's been tested on the following OS and device versions:
@@ -32,8 +32,8 @@ Install the following prerequisites on your development machine except where not
In this section, you'll use the Node.js SDK to send messages from a simulated device to your IoT hub. You'll run a sample that implements a temperature controller with two thermostat sensors.
35
+
## Run a device
36
+
In this section, you'll use the Node.js SDK to send messages from a device to your IoT hub. You'll run a sample that implements a temperature controller with two thermostat sensors.
37
37
38
38
1. Open a new console such as Windows CMD, PowerShell, or Bash. In the following steps, you'll use this console to install the Node.js SDK and work with Node.js sample code.
39
39
@@ -66,7 +66,7 @@ In this section, you'll use the Node.js SDK to send messages from a simulated de
66
66
67
67
This command installs the proper dependencies as specified in the *package.json* file in the device samples directory.
68
68
69
-
1. Set both of the following environment variables, to enable your simulated device to connect to Azure IoT.
69
+
1. Set both of the following environment variables, to enable your device to connect to Azure IoT.
70
70
* Set an environment variable called `IOTHUB_DEVICE_CONNECTION_STRING`. For the variable value, use the device connection string that you saved in the previous section.
71
71
* Set an environment variable called `IOTHUB_DEVICE_SECURITY_TYPE`. For the variable, use the literal string value `connectionString`.
72
72
@@ -128,7 +128,7 @@ To read telemetry sent by individual device components, you can use the plug and
128
128
129
129
To view device telemetry with Azure CLI:
130
130
131
-
1. Run the [az iot hub monitor-events](/cli/azure/iot/hub#az_iot_hub_monitor_events) command to monitor events sent from the simulated device to your IoT hub. Use the names that you created previously in Azure IoT for your device and IoT hub.
131
+
1. Run the [az iot hub monitor-events](/cli/azure/iot/hub#az_iot_hub_monitor_events) command to monitor events sent from the device to your IoT hub. Use the names that you created previously in Azure IoT for your device and IoT hub.
132
132
133
133
```azurecli
134
134
az iot hub monitor-events --output table --device-id mydevice --hub-name {YourIoTHubName}
In this quickstart, you learn a basic Azure IoT application development workflow. You use the Azure CLI and IoT Explorer to create an Azure IoT hub and a device. Then you use an Azure IoT device SDK sample to run a simulated temperature controller, connect it securely to the hub, and send telemetry.
14
+
In this quickstart, you learn a basic Azure IoT application development workflow. You use the Azure CLI and IoT Explorer to create an Azure IoT hub and a device. Then you use an Azure IoT device SDK sample to run a temperature controller, connect it securely to the hub, and send telemetry. The temperature controller sample application runs on your local machine and generates simulated sensor data to send to IoT Hub.
15
15
16
16
## Prerequisites
17
17
This quickstart runs on Windows, Linux, and Raspberry Pi. It's been tested on the following OS and device versions:
@@ -32,8 +32,8 @@ Install the following prerequisites on your development machine except where not
In this section, you use the Python SDK to send messages from a simulated device to your IoT hub. You'll run a sample that implements a temperature controller with two thermostat sensors.
35
+
## Run a device
36
+
In this section, you use the Python SDK to send messages from a device to your IoT hub. You'll run a sample that implements a temperature controller with two thermostat sensors.
37
37
38
38
1. Open a new console such as Windows CMD, PowerShell, or Bash. In the following steps, you'll use this console to install the Python SDK and work with the Python sample code.
39
39
@@ -63,7 +63,7 @@ In this section, you use the Python SDK to send messages from a simulated device
63
63
```console
64
64
pip3 install azure-iot-device
65
65
```
66
-
1. Set the following environment variables, to enable your simulated device to connect to Azure IoT.
66
+
1. Set the following environment variables, to enable your device to connect to Azure IoT.
67
67
* Set an environment variable called `IOTHUB_DEVICE_CONNECTION_STRING`. For the variable value, use the device connection string that you saved in the previous section.
68
68
* Set an environment variable called `IOTHUB_DEVICE_SECURITY_TYPE`. For the variable, use the literal string value `connectionString`.
69
69
@@ -125,7 +125,7 @@ To read telemetry sent by individual device components, you can use the plug and
125
125
126
126
To view device telemetry with Azure CLI:
127
127
128
-
1. Run the [az iot hub monitor-events](/cli/azure/iot/hub#az_iot_hub_monitor_events) command to monitor events sent from the simulated device to your IoT hub. Use the names that you created previously in Azure IoT for your device and IoT hub.
128
+
1. Run the [az iot hub monitor-events](/cli/azure/iot/hub#az_iot_hub_monitor_events) command to monitor events sent from the device to your IoT hub. Use the names that you created previously in Azure IoT for your device and IoT hub.
129
129
130
130
```azurecli
131
131
az iot hub monitor-events --output table --device-id mydevice --hub-name {YourIoTHubName}
0 commit comments