particle-iot / asset-ota-examples

Example applications using the 3rd party OTA functionality

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Asset OTA examples

Example applications using the Asset OTA functionality

Coprocessor update

The stm32_ota 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 System.onAssetOta(handleAssets). 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.

LCD image resource

The lcd_image project shows how to send resources like graphics, fonts, sound samples as assets. The application will not start until all the assets have been delivered to the device so it's safe to assume that the assets are available.

In this case, the application searches the lists of available assets using System.assetsAvailable() and read a splash screen image directly from asset storage into the memory of an external LCD screen.

About

Example applications using the 3rd party OTA functionality

License:Apache License 2.0


Languages

Language:C 84.1%Language:C++ 15.9%Language:Shell 0.0%