mirror of
https://github.com/H3ALY/Wireless-PC-Switch.git
synced 2025-12-19 18:28:22 +00:00
20 lines
285 B
C++
20 lines
285 B
C++
#ifndef OTA_SETUP_H
|
|
#define OTA_SETUP_H
|
|
|
|
#include <ArduinoOTA.h>
|
|
#include "config.h"
|
|
|
|
class OtaManager {
|
|
public:
|
|
void setupOTA() {
|
|
ArduinoOTA.setHostname(ota_hostname);
|
|
ArduinoOTA.begin();
|
|
}
|
|
|
|
void handleOTA() {
|
|
ArduinoOTA.handle();
|
|
}
|
|
};
|
|
|
|
#endif
|