ElegantOTA icon indicating copy to clipboard operation
ElegantOTA copied to clipboard

is there any way to run the command on start?

Open homonto opened this issue 2 years ago • 1 comments

So I am using this library for all my devices - some sleep, some are always on. I would like to ask if there is any possibility to catch that OTA started and then i.e. execute the command like:

on_OTA_start{
  sleep_enabled = false;
}

or so.

Thank you for your great job

homonto avatar Mar 09 '22 17:03 homonto

Right now ElegantOTA uses the default backend provided by the ESP8266HTTPUpdateServer Arduino library hence not possible to add callbacks right now.

Callback support is in the to-do list. It will be added when the codebase is unique to ElegantOTA.

ayushsharma82 avatar Mar 24 '22 20:03 ayushsharma82

Added onStart and more callbacks with V3 release.

ayushsharma82 avatar Oct 17 '23 21:10 ayushsharma82