Skip to content

Commit 6343c3c

Browse files
authored
Merge pull request #108213 from lev-i/main
Update deprecated sample reference
2 parents 5da4a38 + 9789152 commit 6343c3c

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

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

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ In this section, you use the Python SDK to send messages from a device to your I
5050

5151
**Windows**
5252
```console
53-
cd azure-iot-sdk-python\azure-iot-device\samples\pnp
53+
cd azure-iot-sdk-python\samples
5454
```
5555

5656
**Linux or Raspberry Pi OS**
5757
```console
58-
cd azure-iot-sdk-python/azure-iot-device/samples/pnp
58+
cd azure-iot-sdk-python/samples
5959
```
6060

6161

@@ -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-
python3 temp_controller_with_thermostats.py
97+
python3 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).
@@ -137,19 +137,18 @@ To view device telemetry with Azure CLI:
137137
```output
138138
Starting event monitor, filtering on device: mydevice, use ctrl-c to stop...
139139
event:
140-
component: thermostat1
141-
interface: dtmi:com:example:TemperatureController;2
140+
component: ''
141+
interface: ''
142142
module: ''
143143
origin: mydevice
144144
payload:
145-
temperature: 29
145+
'Message #1'
146146
147147
event:
148-
component: thermostat2
149-
interface: dtmi:com:example:TemperatureController;2
148+
component: ''
149+
interface: ''
150150
module: ''
151151
origin: mydevice
152152
payload:
153-
temperature: 48
153+
'Message #2'
154154
```
155-

0 commit comments

Comments
 (0)