mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Add HASP_OTA_PORT
This commit is contained in:
parent
07293d0d47
commit
a3bda0ec08
@ -144,6 +144,13 @@
|
|||||||
|
|
||||||
#if HASP_USE_OTA > 0
|
#if HASP_USE_OTA > 0
|
||||||
#include "hasp_ota.h"
|
#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
|
#endif
|
||||||
|
|
||||||
#if HASP_USE_TASMOTA_SLAVE > 0
|
#if HASP_USE_TASMOTA_SLAVE > 0
|
||||||
|
@ -34,7 +34,8 @@ static WiFiClient otaClient;
|
|||||||
|
|
||||||
std::string otaUrl = "http://10.1.0.3";
|
std::string otaUrl = "http://10.1.0.3";
|
||||||
int8_t otaPrecentageComplete = -1;
|
int8_t otaPrecentageComplete = -1;
|
||||||
int16_t otaPort = 3232;
|
|
||||||
|
int16_t otaPort = HASP_OTA_PORT;
|
||||||
|
|
||||||
void otaProgress()
|
void otaProgress()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user