From 1c0cb2d69f671413649894b114f51c720d01cf77 Mon Sep 17 00:00:00 2001 From: Jim Bennett Date: Mon, 8 Jun 2020 11:59:57 -0700 Subject: [PATCH 1/2] Renaming files to match example standard --- examples/{iotcentral_commands.py => azureiot_central_commands.py} | 0 ...otcentral_notconnected.py => azureiot_central_notconnected.py} | 0 .../{iotcentral_properties.py => azureiot_central_properties.py} | 0 .../{iotcentral_simpletest.py => azureiot_central_simpletest.py} | 0 .../{iothub_directmethods.py => azureiot_hub_directmethods.py} | 0 examples/{iothub_messages.py => azureiot_hub_messages.py} | 0 examples/{iothub_simpletest.py => azureiot_hub_simpletest.py} | 0 ...{iothub_twin_operations.py => azureiot_hub_twin_operations.py} | 0 8 files changed, 0 insertions(+), 0 deletions(-) rename examples/{iotcentral_commands.py => azureiot_central_commands.py} (100%) rename examples/{iotcentral_notconnected.py => azureiot_central_notconnected.py} (100%) rename examples/{iotcentral_properties.py => azureiot_central_properties.py} (100%) rename examples/{iotcentral_simpletest.py => azureiot_central_simpletest.py} (100%) rename examples/{iothub_directmethods.py => azureiot_hub_directmethods.py} (100%) rename examples/{iothub_messages.py => azureiot_hub_messages.py} (100%) rename examples/{iothub_simpletest.py => azureiot_hub_simpletest.py} (100%) rename examples/{iothub_twin_operations.py => azureiot_hub_twin_operations.py} (100%) diff --git a/examples/iotcentral_commands.py b/examples/azureiot_central_commands.py similarity index 100% rename from examples/iotcentral_commands.py rename to examples/azureiot_central_commands.py diff --git a/examples/iotcentral_notconnected.py b/examples/azureiot_central_notconnected.py similarity index 100% rename from examples/iotcentral_notconnected.py rename to examples/azureiot_central_notconnected.py diff --git a/examples/iotcentral_properties.py b/examples/azureiot_central_properties.py similarity index 100% rename from examples/iotcentral_properties.py rename to examples/azureiot_central_properties.py diff --git a/examples/iotcentral_simpletest.py b/examples/azureiot_central_simpletest.py similarity index 100% rename from examples/iotcentral_simpletest.py rename to examples/azureiot_central_simpletest.py diff --git a/examples/iothub_directmethods.py b/examples/azureiot_hub_directmethods.py similarity index 100% rename from examples/iothub_directmethods.py rename to examples/azureiot_hub_directmethods.py diff --git a/examples/iothub_messages.py b/examples/azureiot_hub_messages.py similarity index 100% rename from examples/iothub_messages.py rename to examples/azureiot_hub_messages.py diff --git a/examples/iothub_simpletest.py b/examples/azureiot_hub_simpletest.py similarity index 100% rename from examples/iothub_simpletest.py rename to examples/azureiot_hub_simpletest.py diff --git a/examples/iothub_twin_operations.py b/examples/azureiot_hub_twin_operations.py similarity index 100% rename from examples/iothub_twin_operations.py rename to examples/azureiot_hub_twin_operations.py From 74e11c8324bc15cbbab01083d0b7e0bd17dc3b34 Mon Sep 17 00:00:00 2001 From: Jim Bennett Date: Mon, 8 Jun 2020 12:04:52 -0700 Subject: [PATCH 2/2] Fixing docs --- docs/examples.rst | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/docs/examples.rst b/docs/examples.rst index 013a910..4441aa9 100644 --- a/docs/examples.rst +++ b/docs/examples.rst @@ -3,26 +3,26 @@ IoT Hub Ensure your IoT Hub device works with this simple test. -.. literalinclude:: ../examples/iothub_simpletest.py - :caption: examples/iothub_simpletest.py +.. literalinclude:: ../examples/azureiot_hub_simpletest.py + :caption: examples/azureiot_hub_simpletest.py :linenos: Handle direct methods. -.. literalinclude:: ../examples/iothub_directmethods.py - :caption: examples/iothub_directmethods.py +.. literalinclude:: ../examples/azureiot_hub_directmethods.py + :caption: examples/azureiot_hub_directmethods.py :linenos: Send device to cloud messages, and handle cloud to device messages. -.. literalinclude:: ../examples/iothub_messages.py - :caption: examples/iothub_messages.py +.. literalinclude:: ../examples/azureiot_hub_messages.py + :caption: examples/azureiot_hub_messages.py :linenos: Update the reported properties of the devices device twin, and receive updates to desired properties. -.. literalinclude:: ../examples/iothub_twin_operations.py - :caption: examples/iothub_twin_operations.py +.. literalinclude:: ../examples/azureiot_hub_twin_operations.py + :caption: examples/azureiot_hub_twin_operations.py :linenos: IoT Central @@ -30,24 +30,24 @@ IoT Central Ensure your IoT Central device works with this simple test. -.. literalinclude:: ../examples/iotcentral_simpletest.py - :caption: examples/iotcentral_simpletest.py +.. literalinclude:: ../examples/azureiot_central_simpletest.py + :caption: examples/azureiot_central_simpletest.py :linenos: Handle commands. -.. literalinclude:: ../examples/iotcentral_commands.py - :caption: examples/iotcentral_commands.py +.. literalinclude:: ../examples/azureiot_central_commands.py + :caption: examples/azureiot_central_commands.py :linenos: Update the properties of the device, and receive updates to properties. -.. literalinclude:: ../examples/iotcentral_properties.py - :caption: examples/iotcentral_properties.py +.. literalinclude:: ../examples/azureiot_central_properties.py + :caption: examples/azureiot_central_properties.py :linenos: Handle connection errors. -.. literalinclude:: ../examples/iotcentral_notconnected.py - :caption: examples/iotcentral_notconnected.py +.. literalinclude:: ../examples/azureiot_central_notconnected.py + :caption: examples/azureiot_central_notconnected.py :linenos: \ No newline at end of file