Skip to content

Commit 65db73d

Browse files
authored
Merge pull request #102333 from JimacoMS3/fix-gh-issue-43405
replaced call to iothub_client_init with call to IoTDeviceClient.crea…
2 parents 3be48f2 + 7bb02bb commit 65db73d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/iot-hub/iot-hub-python-python-c2d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ In this section, you create a Python console app to simulate the device and rece
8080
```python
8181
def iothub_client_sample_run():
8282
try:
83-
client = iothub_client_init()
83+
client = IoTHubDeviceClient.create_from_connection_string(CONNECTION_STRING)
8484

8585
message_listener_thread = threading.Thread(target=message_listener, args=(client,))
8686
message_listener_thread.daemon = True

0 commit comments

Comments
 (0)