[PR #1286] [MERGED] Add a callback for OTA update #1733

Closed
opened 2026-02-28 02:12:49 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/tzapu/WiFiManager/pull/1286
Author: @Mollayo
Created: 9/3/2021
Status: Merged
Merged: 9/4/2021
Merged by: @tablatronix

Base: masterHead: master


📝 Commits (1)

  • e34867c Add callback for OTA update

📊 Changes

2 files changed (+16 additions, -0 deletions)

View changed files

📝 WiFiManager.cpp (+13 -0)
📝 WiFiManager.h (+3 -0)

📄 Description

Add a callback to be used before the OTA update. The OTA update sometimes can be corrupted because of timer interrupts. The idea is to have a method "setPreOtaUpdateCallback()" to set a user-defined callback. This callback is called just before uploading the new firmware so that the user can disable all the interrupts that may corrupt the OTA update.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/tzapu/WiFiManager/pull/1286 **Author:** [@Mollayo](https://github.com/Mollayo) **Created:** 9/3/2021 **Status:** ✅ Merged **Merged:** 9/4/2021 **Merged by:** [@tablatronix](https://github.com/tablatronix) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`e34867c`](https://github.com/tzapu/WiFiManager/commit/e34867ce675260fe9c3f016316cb52fa464d6f3b) Add callback for OTA update ### 📊 Changes **2 files changed** (+16 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `WiFiManager.cpp` (+13 -0) 📝 `WiFiManager.h` (+3 -0) </details> ### 📄 Description Add a callback to be used before the OTA update. The OTA update sometimes can be corrupted because of timer interrupts. The idea is to have a method "setPreOtaUpdateCallback()" to set a user-defined callback. This callback is called just before uploading the new firmware so that the user can disable all the interrupts that may corrupt the OTA update. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 02:12:49 +03:00
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#1733
No description provided.