Skip to content

particle-iot/asset-ota-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

To integrate this example into your project, use the STM32_Flash library.

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published