@@ -33,49 +33,37 @@ Create an instance of an Azure IoT Hub (you'll need your SAS Token).
33
33
34
34
.. code-block :: python
35
35
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 ' )
37
37
38
- Send a device-to-cloud message:
38
+ Send a device-to-cloud message
39
39
40
40
.. code-block :: python
41
41
42
- my_hub.send_device_message(' deviceID ' , ' Hi Azure IoT!' )
42
+ my_hub.send_device_message(' Hello Azure IoT!' )
43
43
44
- Enumerate all devices on an Azure IOT Hub:
44
+ Enumerate all devices on an Azure IOT Hub
45
45
46
46
.. code-block :: python
47
47
48
48
hub_devices = my_hub.get_devices()
49
49
50
- Get a specified device on an Azure IoT Hub:
50
+ Get information about the current device on an Azure IoT Hub
51
51
52
52
.. code-block :: python
53
53
54
- device_info = my_hub.get_device(' deviceID ' )
54
+ device_info = my_hub.get_device()
55
55
56
- Create a new device on an Azure IoT Hub:
56
+ Get information about the current device's device twin
57
57
58
58
.. code-block :: python
59
59
60
- my_hub.create_device( ' deviceID ' )
60
+ twin_info = my_hub.get_device_twin( )
61
61
62
- Delete a device from an Azure IoT Hub:
62
+ Update the current device's device twin properties
63
63
64
64
.. code-block :: python
65
65
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)
79
67
80
68
Contributing
81
69
============
0 commit comments