Skip to content

Commit 2b01b1e

Browse files
author
brentru
committed
remove deviceid from the top-level on the readme usage examples too!
1 parent 7076504 commit 2b01b1e

File tree

1 file changed

+10
-22
lines changed

1 file changed

+10
-22
lines changed

README.rst

+10-22
Original file line numberDiff line numberDiff line change
@@ -33,49 +33,37 @@ Create an instance of an Azure IoT Hub (you'll need your SAS Token).
3333

3434
.. code-block:: python
3535
36-
my_hub = IOT_HUB(wifi, 'Azure_IOT_Hub_Name', 'Azure_IOT_Hub_SAS_Token')
36+
my_hub = IOT_HUB(wifi, 'Azure_IOT_Hub_Name', 'Azure_IOT_Hub_SAS_Token', 'Azure_Device_Identifier')
3737
38-
Send a device-to-cloud message:
38+
Send a device-to-cloud message
3939

4040
.. code-block:: python
4141
42-
my_hub.send_device_message('deviceID', 'Hi Azure IoT!')
42+
my_hub.send_device_message('Hello Azure IoT!')
4343
44-
Enumerate all devices on an Azure IOT Hub:
44+
Enumerate all devices on an Azure IOT Hub
4545

4646
.. code-block:: python
4747
4848
hub_devices = my_hub.get_devices()
4949
50-
Get a specified device on an Azure IoT Hub:
50+
Get information about the current device on an Azure IoT Hub
5151

5252
.. code-block:: python
5353
54-
device_info = my_hub.get_device('deviceID')
54+
device_info = my_hub.get_device()
5555
56-
Create a new device on an Azure IoT Hub:
56+
Get information about the current device's device twin
5757

5858
.. code-block:: python
5959
60-
my_hub.create_device('deviceID')
60+
twin_info = my_hub.get_device_twin()
6161
62-
Delete a device from an Azure IoT Hub:
62+
Update the current device's device twin properties
6363

6464
.. code-block:: python
6565
66-
my_hub.delete_device('deviceID')
67-
68-
Get a device twin:
69-
70-
.. code-block:: python
71-
72-
twin_info = my_hub.get_device_twin('deviceID')
73-
74-
Update a device twin's properties:
75-
76-
.. code-block:: python
77-
78-
my_hub.update_device_twin('Blinka', device_properties)
66+
my_hub.update_device_twin(device_properties)
7967
8068
Contributing
8169
============

0 commit comments

Comments
 (0)