hardcode ESP32 OTA PORT

This commit is contained in:
proddy
2019-05-11 16:17:12 +02:00
parent c78da36762
commit e824eb0e57
2 changed files with 4 additions and 4 deletions

View File

@@ -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(); });

View File

@@ -9,7 +9,7 @@
#ifndef MyEMS_h
#define MyEMS_h
#define MYESP_VERSION "1.1.9"
#define MYESP_VERSION "1.1.10"
#include <ArduinoJson.h>
#include <ArduinoOTA.h>
@@ -30,10 +30,10 @@ void custom_crash_callback(struct rst_info *, uint32_t, uint32_t);
//#include <ESPmDNS.h>
#include <SPIFFS.h> // added for ESP32
#define ets_vsnprintf vsnprintf // added for ESP32
#define OTA_PORT 8266
#define OTA_PORT 3232
#else
#include <ESPAsyncTCP.h>
#define OTA_PORT 3232
#define OTA_PORT 8266
#endif
#define MYEMS_CONFIG_FILE "/config.json"