Add HASP_OTA_PORT

This commit is contained in:
fvanroie 2020-11-03 23:00:11 +01:00
parent 07293d0d47
commit a3bda0ec08
2 changed files with 9 additions and 1 deletions

View File

@ -144,6 +144,13 @@
#if HASP_USE_OTA > 0
#include "hasp_ota.h"
#ifndef HASP_OTA_PORT
#if defined(ARDUINO_ARCH_ESP32)
#define HASP_OTA_PORT 3232
#elif defined(ARDUINO_ARCH_ESP8266)
#define HASP_OTA_PORT 8266
#endif
#endif
#if HASP_USE_TASMOTA_SLAVE > 0

View File

@ -34,7 +34,8 @@ static WiFiClient otaClient;
std::string otaUrl = "http://10.1.0.3";
int8_t otaPrecentageComplete = -1;
int16_t otaPort = 3232;
int16_t otaPort = HASP_OTA_PORT;
void otaProgress()
{