Merge pull request #442 from BSRasmussen/development
Turn off ESP8266 acess point before starting WiFi
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