mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
hardcode ESP32 OTA PORT
This commit is contained in:
@@ -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(); });
|
||||
@@ -946,7 +946,6 @@ void MyESP::showSystemStats() {
|
||||
myDebug_P(PSTR(" [MEM] Max OTA size: %d"), (ESP.getFreeSketchSpace() - 0x1000) & 0xFFFFF000);
|
||||
myDebug_P(PSTR(" [MEM] OTA Reserved: %d"), 4 * SPI_FLASH_SEC_SIZE);
|
||||
myDebug_P(PSTR(" [MEM] Free Heap: %d"), ESP.getFreeHeap());
|
||||
|
||||
myDebug_P(PSTR(""));
|
||||
}
|
||||
|
||||
@@ -1554,10 +1553,12 @@ void MyESP::loop() {
|
||||
|
||||
jw.loop(); // WiFi
|
||||
|
||||
/*
|
||||
// do nothing else until we've got a wifi connection
|
||||
if (WiFi.getMode() & WIFI_AP) {
|
||||
return;
|
||||
}
|
||||
*/
|
||||
|
||||
ArduinoOTA.handle(); // OTA
|
||||
_mqttConnect(); // MQTT
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user