Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 1.99 KB

dmpatterns.md

File metadata and controls

43 lines (26 loc) · 1.99 KB

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

The device management patterns samples

The device management pattern samples support the following device management tutorials, which provide both the device and service side code ready to execute.

To learn more about Azure IoT Hub device management, see Overview of Azure IoT Hub device management.

Running the samples

From the root directory of the repository, run through the following steps to see the device and service interacting to enable the device management patterns:

Reboot device management pattern:

  1. Start the device side first, as it will register the C2D method listener for reboot:

    node \node\device\samples\dmpatterns_reboot_device.js <IotHub device connection string>
    
  2. In a new terminal window, start the service side to initate the reboot:

    node \node\service\samples\dmpatterns_reboot_service.js <IotHub connection string>
    

Firmware Update device management pattern:

  1. Start the device side first, as it will register the C2D method listener for firmware update:

    node \node\device\samples\dmpatterns_fwupdate_device.js <IotHub device connection string>
    
  2. In a new terminal window, start the service side to initate the firmware update:

    node \node\service\samples\dmpatterns_fwupdate_service.js <IotHub connection string>