diff --git a/src/OtaHandler.cpp b/src/OtaHandler.cpp index 1e2ec64..b2179db 100644 --- a/src/OtaHandler.cpp +++ b/src/OtaHandler.cpp @@ -1,5 +1,7 @@ #include "OtaHandler.h" +#ifndef ESP8266 // Only for esp32 based mcu + void OtaHandler::setHandlerCallback(OtaHandlerCallback_t callback) { _callback = callback; } void OtaHandler::updateFirmwareIfOutdated(String deviceId) { @@ -161,4 +163,6 @@ OtaHandler::attemptToPerformOta(const esp_http_client_config_t *config) { void OtaHandler::cleanupHttp(esp_http_client_handle_t client) { esp_http_client_close(client); esp_http_client_cleanup(client); -} \ No newline at end of file +} + +#endif \ No newline at end of file