Calling WiFi.config() before WiFi.begin() (#772)

This commit is contained in:
Olivier
2017-02-13 07:17:43 +01:00
committed by Mikael Falkvidd
parent a34f2e518e
commit 9ecb78598b
+1 -1
View File
@@ -137,10 +137,10 @@ bool gatewayTransportInit(void)
#if defined(MY_ESP8266_HOSTNAME)
WiFi.hostname(MY_ESP8266_HOSTNAME);
#endif
(void)WiFi.begin(MY_ESP8266_SSID, MY_ESP8266_PASSWORD);
#ifdef MY_IP_ADDRESS
WiFi.config(_MQTT_clientIp, _gatewayIp, _subnetIp);
#endif
(void)WiFi.begin(MY_ESP8266_SSID, MY_ESP8266_PASSWORD);
#endif
gatewayTransportConnect();