From 312a69bb6ce3b76d7b1ab014a1ac4324dbd338f0 Mon Sep 17 00:00:00 2001 From: tekka007 Date: Thu, 14 Jul 2016 21:48:01 +0200 Subject: [PATCH] Calling WiFi.config() before WiFi.begin() --- core/MyGatewayTransportEthernet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/MyGatewayTransportEthernet.cpp b/core/MyGatewayTransportEthernet.cpp index 2db3b5a..3d6b0fc 100644 --- a/core/MyGatewayTransportEthernet.cpp +++ b/core/MyGatewayTransportEthernet.cpp @@ -106,10 +106,10 @@ bool gatewayTransportInit() { #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(_ethernetGatewayIP, _gatewayIp, _subnetIp); #endif + (void)WiFi.begin(MY_ESP8266_SSID, MY_ESP8266_PASSWORD); while (WiFi.status() != WL_CONNECTED) { delay(500);