Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature/immediate updates #1732
The original implementation of System.disableUpdates() did not operate in tandem with the cloud, and did not work in an intuitive manner as a consequence.
System events from the cloud are used to notify the device that updates are pending and to force updates enabled when previously disabled in firmware.
The device publishes system events in response to firmware updates being enabled or forced.
The CoAP response when updates are disabled has been changed to 5.03 (Service Unavailable) and the response carried with a token, so the cloud reacts immediately.
System events were previously being handled on the application thread. This has been changed to handle them on the system thread.
Steps to Test
The test application in user/tests/app/immediate_updates. The SDD describes the manual test plan.