Skip to content
This repository was archived by the owner on Jul 6, 2024. It is now read-only.

Added optional OTA start, progress and end callback - #109

Open
PeterAckermans wants to merge 5 commits into
ayushsharma82:masterfrom
PeterAckermans:Added-optional-Pre-OTA-Update-Callback
Open

Added optional OTA start, progress and end callback#109
PeterAckermans wants to merge 5 commits into
ayushsharma82:masterfrom
PeterAckermans:Added-optional-Pre-OTA-Update-Callback

Conversation

@PeterAckermans

Copy link
Copy Markdown

Hi,

As I needed a callback on start of OTA to save the status of my program to resume after the date I added optional interfaces to get a callback

Prior to OTA start
On OTA progress
After OTA completed

The implementation is backward compatible to your latest release.
It doesn't require any changes to existing user that don't need any of the callback functions

The callback is only activated once you call the activation call with the correct callback function added.

PS: I also update the standard OTA library with exactly the same class extensions.
As I only have an ESP32 I couldn't test on ESP8266 but as I only added no architecture dependent code it should work out of the box.

Added code for optional pre OTA call back.

Will add documentation later
PreUpdateCallback was call prior to the check for errors
@TofMassilia13320

Copy link
Copy Markdown

Hello ayushsharma82,
What is the integration status of this update ?

@nozbey

nozbey commented Sep 6, 2023

Copy link
Copy Markdown

hello,

could you add this feature , accept request ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants