Skip to content

Commit 1671567

Browse files
Merge pull request #234837 from timlt/pytelemetry
Update py instructions
2 parents 27c354a + 47023a2 commit 1671567

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

includes/iot-develop-send-telemetry-iot-hub-python.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ In this section, you use the Python SDK to send messages from a device to your I
6262
1. Install the Azure IoT Python SDK:
6363

6464
```console
65-
pip3 install azure-iot-device
65+
pip install azure-iot-device==3.0.0b2
6666
```
6767
1. Set the following environment variables, to enable your device to connect to Azure IoT.
6868
* 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.
@@ -94,7 +94,7 @@ In this section, you use the Python SDK to send messages from a device to your I
9494
1. Run the code for the following sample file.
9595

9696
```console
97-
pip install azure-iot-device==3.0.0b2
97+
python iothub_simple_telemetry.py
9898
```
9999
> [!NOTE]
100100
> This code sample uses Azure IoT Plug and Play, which lets you integrate smart devices into your solutions without any manual configuration. By default, most samples in this documentation use IoT Plug and Play. To learn more about the advantages of IoT Plug and Play, and cases for using or not using it, see [What is IoT Plug and Play?](../articles/iot-develop/overview-iot-plug-and-play.md).

0 commit comments

Comments
 (0)