mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Wfi fix ESP8266
This commit is contained in:
parent
88880a9419
commit
8d27895a4f
@ -139,10 +139,10 @@ bool wifiShowAP(char * ssid, char * pass)
|
||||
void wifiReconnect()
|
||||
{
|
||||
WiFi.disconnect(true);
|
||||
WiFi.config(INADDR_NONE, INADDR_NONE, INADDR_NONE);
|
||||
#if defined(ARDUINO_ARCH_ESP8266)
|
||||
WiFi.hostname(mqttGetNodename().c_str());
|
||||
#elif defined(ARDUINO_ARCH_ESP32)
|
||||
WiFi.config(INADDR_NONE, INADDR_NONE, INADDR_NONE);
|
||||
WiFi.setHostname(mqttGetNodename().c_str());
|
||||
#endif
|
||||
WiFi.begin(wifiSsid, wifiPassword);
|
||||
|
Loading…
x
Reference in New Issue
Block a user