Skip to content

Allow observation of OTA events #168

@rjwats

Description

@rjwats

Observing OTA events could be useful for suspending services or preparing the device for the firmware update.

The simpliest way to provide that feature may be to expose a factory function to allow the creation of the OTA update instance to be customized (assuming the framework doesn't need to perform event driven actions itself). With the the callbacks being available:

image

The most extensible option is to provide a callback approach similar to the SettingsService class. I think this is the better approach - possibly with event type similar to the Arduino ESP32 connectivity event callbacks:

otaSettingsService.onEvent(std::bind(&MyService::onUpdateStart, this), OTAEvent::START);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions