Turn of ESP8266 acess point before starting WiFi

Start only in station mode and not the default combined access point and station mode, like when starting with MQTT in MyGatewayTransportMQTTClient.cpp
This commit is contained in:
BSRasmussen
2016-05-22 10:50:36 +02:00
parent 460ae09811
commit 1224b42f5a
@@ -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);