Merge pull request #442 from BSRasmussen/development

Turn off ESP8266 acess point before starting WiFi
This commit is contained in:
Henrik Ekblad
2016-05-23 23:19:47 +02:00
@@ -101,6 +101,8 @@ bool gatewayTransportInit() {
_w5100_spi_en(true);
#if defined(MY_GATEWAY_ESP8266)
#if defined(MY_ESP8266_SSID)
// Turn off access point
WiFi.mode (WIFI_STA);
(void)WiFi.begin(MY_ESP8266_SSID, MY_ESP8266_PASSWORD);
#ifdef MY_IP_ADDRESS
WiFi.config(_ethernetGatewayIP, gateway, subnet);