Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lennarthennigs/otawrapper
Arduino/ESP library to simplify OTA setup.
https://github.com/lennarthennigs/otawrapper
arduino arduino-library cplusplus esp32 esp8266 m5stack ota-update
Last synced: about 3 hours ago
JSON representation
Arduino/ESP library to simplify OTA setup.
- Host: GitHub
- URL: https://github.com/lennarthennigs/otawrapper
- Owner: LennartHennigs
- License: mit
- Created: 2020-12-31T08:36:32.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-03T16:27:24.000Z (about 2 years ago)
- Last Synced: 2023-02-27T23:51:54.086Z (over 1 year ago)
- Topics: arduino, arduino-library, cplusplus, esp32, esp8266, m5stack, ota-update
- Language: C++
- Homepage:
- Size: 28.3 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# OTAWrapper
- Author: Lennart Hennigs ()
- Copyright (C) 2021-2023 Lennart Hennigs.
- Released under the MIT license.## Description
This class maked it easier to implement the OTA functionality.
- It offers callback functions for tracking the OTA events.
- You can get the progress count and implement your own status display.
- It tries to use the builtin LED to show the update status**Note:** For the class to work, you need to call the `loop()` member function in your sketch's `loop()` function. See the example for more details.
If you find this library helpful please consider giving it a ⭐️ at [GitHub](https://github.com/LennartHennigs/OTAWrapper) and/or [buy me a ☕️](https://ko-fi.com/lennart0815). Thank you!
## How to Use
These are the constructor and the member functions the library provides:
``` c++
OTAWrapper();
void onStart(CallbackFunction f);
void onEnd(CallbackFunction f);
void onError(CallbackFunction f);
void onProgress(CallbackFunction f);int getProgress();
String errorToString(ota_error_t error);
ota_error_t getLastError();void setup(char *name, char *passwd = "", int port = 8266);
void loop();```