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

Added optional OTA start, progress and end callback #109

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

PeterAckermans
Copy link

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

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

@nozbey
Copy link

nozbey commented Sep 6, 2023

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