[GH-ISSUE #1285] Callback for OTA update #1102

Closed
opened 2026-02-28 01:28:32 +03:00 by kerem · 2 comments
Owner

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.

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.
kerem 2026-02-28 01:28:32 +03:00
Author
Owner

@tablatronix commented on GitHub (Sep 3, 2021):

Hmm feel free might have to see how it could effect uploads with any delays

<!-- gh-comment-id:912148772 --> @tablatronix commented on GitHub (Sep 3, 2021): Hmm feel free might have to see how it could effect uploads with any delays
Author
Owner

@Mollayo commented on GitHub (Sep 3, 2021):

Voilà. Done.

<!-- gh-comment-id:912516408 --> @Mollayo commented on GitHub (Sep 3, 2021): Voilà. Done.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#1102
No description provided.