ARMmbed / connectedhomeip

Project Connected Home over IP is a new Working Group within the Zigbee Alliance. This Working Group plans to develop and promote the adoption of a new connectivity standard to increase compatibility among smart home products, with security as a fundamental design tenet.
https://www.connectedhomeip.com
Apache License 2.0
10 stars 4 forks source link

Add DFU support to Mbed examples #203

Closed ATmobica closed 2 years ago

ATmobica commented 2 years ago

Problem

Add DFU support to the rest of Mbed examples:

I add also some fixes and cleanup in each application - to standardize the implementation for all of them

Change overview

Move all generated sources from common Mbed cmake to OTA requestor app cmake
Move software version defines to platform level configuration Add OTA support to rest of Mbed examples - config.in, Cmake, gitignore, mbed_app.json AppTask or main Increase primary slot size to suit every case Add auto-restart device after update applied Add server command to shell example - we need this to start the CHIP server and commission the device, then trigger the OTA update.

Testing

Build and run all Mbed examples. Commissioning and trigger OTA update action.

ATmobica commented 2 years ago

It's odd, I though the change to mbed-posix-socket was already in.

@pan- Yeah, it should but in meantime, someone reverts my changes. Now it's fixed on upstream, but not in our development fork. I'll fix this during rebasing with usptream.