Azure / iot-edge-v1

Azure IoT Edge
http://azure.github.io/iot-edge/
Other
524 stars 258 forks source link

module update extension from IoT Hub via device twin desired properties #620

Open hirosho opened 6 years ago

hirosho commented 6 years ago
# Reference/Link to the issue solved with this PR (if any) # Description of the problem There is no feature to update modules from cloud side like Edge SDK version 2. # Description of the solution Add following step logics. 1. Receive module configuration notification via device twin desired properties. 2. Download new module configuration from cloud 3. Download new module library stored in cloud storage. 4. Update modules by using existing function. This extension is only for C/C++ native module. Please see detail way - samples/remote_update/README.md ## Notes on Unit Tests Before submitting the PR, it is **recommended** to run UTs(especially for bug fixes, feature additions etc. to existing code) Before running the UTs, make sure you have performed a recursive clone of the repository: ``` git clone --recursive https://github.com/Azure/iot-edge ``` # Running UTs in Linux ``` v1/tools/build.sh --run-unittests ``` # Running UTs in Windows ``` v1\tools\build.cmd --run-unittests ```