examples.rst
1 IoT Hub 2 ------------ 3 4 Ensure your IoT Hub device works with this simple test. 5 6 .. literalinclude:: ../examples/azureiot_hub_simpletest.py 7 :caption: examples/azureiot_hub_simpletest.py 8 :linenos: 9 10 Handle direct methods. 11 12 .. literalinclude:: ../examples/azureiot_hub_directmethods.py 13 :caption: examples/azureiot_hub_directmethods.py 14 :linenos: 15 16 Send device to cloud messages, and handle cloud to device messages. 17 18 .. literalinclude:: ../examples/azureiot_hub_messages.py 19 :caption: examples/azureiot_hub_messages.py 20 :linenos: 21 22 Update the reported properties of the devices device twin, and receive updates to desired properties. 23 24 .. literalinclude:: ../examples/azureiot_hub_twin_operations.py 25 :caption: examples/azureiot_hub_twin_operations.py 26 :linenos: 27 28 IoT Central 29 ------------ 30 31 Ensure your IoT Central device works with this simple test. 32 33 .. literalinclude:: ../examples/azureiot_central_simpletest.py 34 :caption: examples/azureiot_central_simpletest.py 35 :linenos: 36 37 Handle commands. 38 39 .. literalinclude:: ../examples/azureiot_central_commands.py 40 :caption: examples/azureiot_central_commands.py 41 :linenos: 42 43 Update the properties of the device, and receive updates to properties. 44 45 .. literalinclude:: ../examples/azureiot_central_properties.py 46 :caption: examples/azureiot_central_properties.py 47 :linenos: 48 49 Handle connection errors. 50 51 .. literalinclude:: ../examples/azureiot_central_notconnected.py 52 :caption: examples/azureiot_central_notconnected.py 53 :linenos: