This project shows how to bundle a firmware binary for a coprocessor (in this case an STM32 microcontroller) and how to update the coprocessor when a new binary has been received.
The application registers a callback using
handleAssets will find the firmware binary for the coprocessor, flash it, then mark the assets as handled using
System.assetsHandled(true) so that
handleAssets is not called on next boot.
This example was shown at Spectra 2023. Github.