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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user