mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 19:56:44 +00:00
Add HaspNetworkClient
This commit is contained in:
parent
73fb9b8b3a
commit
fa51ebc865
@ -176,11 +176,17 @@ static WiFiSpiClass WiFi;
|
|||||||
#if HASP_USE_W5500 > 0
|
#if HASP_USE_W5500 > 0
|
||||||
#include "sys/net/hasp_ethernet_lib.h"
|
#include "sys/net/hasp_ethernet_lib.h"
|
||||||
|
|
||||||
|
#define HaspNetworkClient EthernetClient
|
||||||
|
#define HaspNetworkServer EthernetServer
|
||||||
|
|
||||||
#warning Using ESP32 Ethernet W5500
|
#warning Using ESP32 Ethernet W5500
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#include <ETH.h>
|
#include <ETH.h>
|
||||||
|
|
||||||
|
#define HaspNetworkClient WiFiClient
|
||||||
|
#define HaspNetworkServer WiFiServer
|
||||||
|
|
||||||
#define ETH_ADDR 0
|
#define ETH_ADDR 0
|
||||||
#define ETH_POWER_PIN -1
|
#define ETH_POWER_PIN -1
|
||||||
#define ETH_MDC_PIN 23
|
#define ETH_MDC_PIN 23
|
||||||
|
@ -56,7 +56,7 @@ const char* rootCACertificate = "-----BEGIN CERTIFICATE-----\n"
|
|||||||
"-----END CERTIFICATE-----\n";
|
"-----END CERTIFICATE-----\n";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static WiFiClient otaClient;
|
static HaspNetworkClient otaClient;
|
||||||
std::string otaUrl = "http://ota.netwize.be";
|
std::string otaUrl = "http://ota.netwize.be";
|
||||||
int16_t otaPort = HASP_OTA_PORT;
|
int16_t otaPort = HASP_OTA_PORT;
|
||||||
int8_t otaPrecentageComplete = -1;
|
int8_t otaPrecentageComplete = -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user