mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #1285] Callback for OTA update #1102
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1102
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Mollayo on GitHub (Sep 2, 2021).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1285
It would be useful to have a callback before the OTA update. The OTA update sometimes can be corrupted because of timer interrupts. The idea would be to have a method "setPreOtaUpdateCallback()" to set a user-defined callback. This callback would be called just before uploading the new firmware so that the user can disable all the interrupts that may corrupt the OTA update.
This does not require much work of implementation. If you agree, I can implement this feature myself and make a pull request.
@tablatronix commented on GitHub (Sep 3, 2021):
Hmm feel free might have to see how it could effect uploads with any delays
@Mollayo commented on GitHub (Sep 3, 2021):
Voilà. Done.