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. First you create an Azure IoT Central application for hosting devices. Then you use an Azure IoT device SDK sample to run a simulated temperature controller, connect it securely to IoT Central, and send telemetry.
14
+
In this quickstart, you learn a basic Azure IoT application development workflow. First you create an Azure IoT Central application for hosting devices. Then you use an Azure IoT device SDK sample to create a temperature controller, connect it securely to IoT Central, and send telemetry. The temperature controller sample application runs on your local machine and generates simulated sensor data to send to IoT Central.
15
15
16
16
## Prerequisites
17
17
@@ -32,14 +32,14 @@ Install the following prerequisites on your development machine:
In this section, you configure your local environment, install the Azure IoT C# samples, and run a sample that creates a simulated temperature controller.
35
+
## Run a device
36
+
In this section, you configure your local environment, install the Azure IoT C# samples, and run a sample that creates a temperature controller.
37
37
38
38
### Configure your environment
39
39
40
40
1. Open a console such as Windows CMD, PowerShell, or Bash.
41
41
42
-
1. Set the following environment variables, using the appropriate commands for your console. The simulated device uses these values to connect to IoT Central. For `IOTHUB_DEVICE_DPS_ID_SCOPE`, `IOTHUB_DEVICE_DPS_DEVICE_KEY`, and `IOTHUB_DEVICE_DPS_DEVICE_ID`, use the device connection values that you saved previously.
42
+
1. Set the following environment variables, using the appropriate commands for your console. The device uses these values to connect to IoT Central. For `IOTHUB_DEVICE_DPS_ID_SCOPE`, `IOTHUB_DEVICE_DPS_DEVICE_KEY`, and `IOTHUB_DEVICE_DPS_DEVICE_ID`, use the device connection values that you saved previously.
43
43
44
44
**CMD (Windows)**
45
45
@@ -106,13 +106,13 @@ In this section, you configure your local environment, install the Azure IoT C#
106
106
107
107
### Run the code
108
108
109
-
1. In your console, run the code sample. The sample creates a simulated temperature controller with thermostat sensors.
109
+
1. In your console, run the code sample. The sample creates a temperature controller with thermostat sensors.
110
110
111
111
```console
112
112
dotnet run
113
113
```
114
114
115
-
After your simulated device connects to your IoT Central application, it connects to the device instance you created in the application and begins to send telemetry. The connection details and telemetry output are shown in your console:
115
+
After your device connects to your IoT Central application, it connects to the device instance you created in the application and begins to send telemetry. The connection details and telemetry output are shown in your console:
In this quickstart, you learn a basic Azure IoT application development workflow. First you create an Azure IoT Central application for hosting devices. Then you use an Azure IoT device SDK sample to run a simulated temperature controller, connect it securely to IoT Central, and send telemetry.
14
+
In this quickstart, you learn a basic Azure IoT application development workflow. First you create an Azure IoT Central application for hosting devices. Then you use an Azure IoT device SDK sample to create a temperature controller, connect it securely to IoT Central, and send telemetry. The temperature controller sample application runs on your local machine and generates simulated sensor data to send to IoT Central.
15
15
16
16
## Prerequisites
17
17
- A development machine with Java SE Development Kit 8 or later. You can download the Java 8 (LTS) JDK for multiple platforms from [Download Zulu Builds of OpenJDK](https://www.azul.com/downloads/zulu-community/). In the installer, select the **Add to Path** option.
@@ -20,14 +20,14 @@ In this quickstart, you learn a basic Azure IoT application development workflow
In this section, you configure your local environment, install the Azure IoT Java device SDK, and run a sample that creates a simulated temperature controller.
23
+
## Run a device
24
+
In this section, you configure your local environment, install the Azure IoT Java device SDK, and run a sample that creates a temperature controller.
25
25
26
26
### Configure your environment
27
27
28
28
1. Open a console such as Windows CMD, PowerShell, or Bash.
29
29
30
-
1. Set the following environment variables, using the appropriate commands for your console. The simulated device uses these values to connect to IoT Central. For `IOTHUB_DEVICE_DPS_ID_SCOPE`, `IOTHUB_DEVICE_DPS_DEVICE_KEY`, and `IOTHUB_DEVICE_DPS_DEVICE_ID`, use the device connection values that you saved previously.
30
+
1. Set the following environment variables, using the appropriate commands for your console. The device uses these values to connect to IoT Central. For `IOTHUB_DEVICE_DPS_ID_SCOPE`, `IOTHUB_DEVICE_DPS_DEVICE_KEY`, and `IOTHUB_DEVICE_DPS_DEVICE_ID`, use the device connection values that you saved previously.
31
31
32
32
**Windows CMD**
33
33
@@ -76,12 +76,12 @@ In this section, you configure your local environment, install the Azure IoT Jav
76
76
cd device/iot-device-samples/pnp-device-sample/temperature-controller-device-sample
77
77
```
78
78
79
-
1. In your console, run the following code sample. The sample creates a simulated temperature controller with thermostat sensors.
79
+
1. In your console, run the following code sample. The sample creates a temperature controller with thermostat sensors.
After your simulated device connects to your IoT Central application, it connects to the device instance you created in the application and begins to send telemetry. After some initial provisioning details, the console start to output the telemetry for the temperature controller.
84
+
After your device connects to your IoT Central application, it connects to the device instance you created in the application and begins to send telemetry. After some initial provisioning details, the console start to output the telemetry for the temperature controller.
In this quickstart, you learn a basic Azure IoT application development workflow. First you create an Azure IoT Central application for hosting devices. Then you use an Azure IoT device SDK sample to run a simulated temperature controller, connect it securely to IoT Central, and send telemetry.
14
+
In this quickstart, you learn a basic Azure IoT application development workflow. First you create an Azure IoT Central application for hosting devices. Then you use an Azure IoT device SDK sample to create a temperature controller, connect it securely to IoT Central, and send telemetry. The temperature controller sample application runs on your local machine and generates simulated sensor data to send to IoT Central.
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:
@@ -27,14 +27,14 @@ Install the following prerequisites on your development machine:
In this section, you configure your local environment, install the Azure IoT Node.js device SDK, and run a sample that creates a simulated temperature controller.
30
+
## Run a device
31
+
In this section, you configure your local environment, install the Azure IoT Node.js device SDK, and run a sample that creates a temperature controller.
32
32
33
33
### Configure your environment
34
34
35
35
1. Open a console such as Windows CMD, PowerShell, or Bash.
36
36
37
-
1. Set the following environment variables, using the appropriate commands for your console. The simulated device uses these values to connect to IoT Central. For `IOTHUB_DEVICE_DPS_ID_SCOPE`, `IOTHUB_DEVICE_DPS_DEVICE_KEY`, and `IOTHUB_DEVICE_DPS_DEVICE_ID`, use the device connection values that you saved previously.
37
+
1. Set the following environment variables, using the appropriate commands for your console. The device uses these values to connect to IoT Central. For `IOTHUB_DEVICE_DPS_ID_SCOPE`, `IOTHUB_DEVICE_DPS_DEVICE_KEY`, and `IOTHUB_DEVICE_DPS_DEVICE_ID`, use the device connection values that you saved previously.
38
38
39
39
**CMD (Windows)**
40
40
@@ -96,12 +96,12 @@ In this section, you configure your local environment, install the Azure IoT Nod
96
96
97
97
### Run the code
98
98
99
-
1. In your console, run the following code sample from the SDK. The sample creates a simulated temperature controller with thermostat sensors.
99
+
1. In your console, run the following code sample from the SDK. The sample creates a temperature controller with thermostat sensors.
100
100
```console
101
101
node pnpTemperatureController.js
102
102
```
103
103
104
-
After your simulated device connects to your IoT Central application, it connects to the device instance you created in the application and begins to send telemetry. The connection details and telemetry output are shown in your console:
104
+
After your device connects to your IoT Central application, it connects to the device instance you created in the application and begins to send telemetry. The connection details and telemetry output are shown in your console:
In this quickstart, you learn a basic Azure IoT application development workflow. First you create an Azure IoT Central application for hosting devices. Then you use an Azure IoT device SDK sample to run a simulated temperature controller, connect it securely to IoT Central, and send telemetry.
14
+
In this quickstart, you learn a basic Azure IoT application development workflow. First you create an Azure IoT Central application for hosting devices. Then you use an Azure IoT device SDK sample to create a temperature controller, connect it securely to IoT Central, and send telemetry. The temperature controller sample application runs on your local machine and generates simulated sensor data to send to IoT Central.
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:
@@ -27,14 +27,14 @@ Install the following prerequisites on your development machine:
In this section, you configure your local environment, install the Azure IoT Python device SDK, and run a sample that creates a simulated temperature controller.
30
+
## Run a device
31
+
In this section, you configure your local environment, install the Azure IoT Python device SDK, and run a sample that creates a temperature controller.
32
32
33
33
### Configure your environment
34
34
35
35
1. Open a console such as Windows CMD, PowerShell, or Bash.
36
36
37
-
1. Set the following environment variables, using the appropriate commands for your console. The simulated device uses these values to connect to IoT Central. For `IOTHUB_DEVICE_DPS_ID_SCOPE`, `IOTHUB_DEVICE_DPS_DEVICE_KEY`, and `IOTHUB_DEVICE_DPS_DEVICE_ID`, use the device connection values that you saved previously.
37
+
1. Set the following environment variables, using the appropriate commands for your console. The device uses these values to connect to IoT Central. For `IOTHUB_DEVICE_DPS_ID_SCOPE`, `IOTHUB_DEVICE_DPS_DEVICE_KEY`, and `IOTHUB_DEVICE_DPS_DEVICE_ID`, use the device connection values that you saved previously.
38
38
39
39
**CMD (Windows)**
40
40
@@ -95,12 +95,12 @@ In this section, you configure your local environment, install the Azure IoT Pyt
95
95
96
96
### Run the code
97
97
98
-
1. In your console, run the following code sample from the SDK. The sample creates a simulated temperature controller with thermostat sensors.
98
+
1. In your console, run the following code sample from the SDK. The sample creates a temperature controller with thermostat sensors.
99
99
```console
100
100
python3 temp_controller_with_thermostats.py
101
101
```
102
102
103
-
After your simulated device connects to your IoT Central application, it connects to the device instance you created in the application and begins to send telemetry. The connection details and telemetry output are shown in your console:
103
+
After your device connects to your IoT Central application, it connects to the device instance you created in the application and begins to send telemetry. The connection details and telemetry output are shown in your console:
0 commit comments