From e824eb0e57172966fb8d699353693b83b46c2e01 Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 11 May 2019 16:17:12 +0200 Subject: [PATCH] hardcode ESP32 OTA PORT --- lib/MyESP/MyESP.cpp | 2 +- lib/MyESP/MyESP.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/MyESP/MyESP.cpp b/lib/MyESP/MyESP.cpp index 109fb6e17..2997543aa 100644 --- a/lib/MyESP/MyESP.cpp +++ b/lib/MyESP/MyESP.cpp @@ -388,7 +388,7 @@ void MyESP::_ota_setup() { return; } - //ArduinoOTA.setPort(OTA_PORT); + ArduinoOTA.setPort(OTA_PORT); ArduinoOTA.setHostname(_app_hostname); ArduinoOTA.onStart([this]() { _OTACallback(); }); diff --git a/lib/MyESP/MyESP.h b/lib/MyESP/MyESP.h index 011f1b86f..eed927d77 100644 --- a/lib/MyESP/MyESP.h +++ b/lib/MyESP/MyESP.h @@ -9,7 +9,7 @@ #ifndef MyEMS_h #define MyEMS_h -#define MYESP_VERSION "1.1.9" +#define MYESP_VERSION "1.1.10" #include #include @@ -30,10 +30,10 @@ void custom_crash_callback(struct rst_info *, uint32_t, uint32_t); //#include #include // added for ESP32 #define ets_vsnprintf vsnprintf // added for ESP32 -#define OTA_PORT 8266 +#define OTA_PORT 3232 #else #include -#define OTA_PORT 3232 +#define OTA_PORT 8266 #endif #define MYEMS_CONFIG_FILE "/config.json"