Turn off access point when running ESP8266 MQTT client
Fixes: https://github.com/mysensors/Arduino/issues/366
This commit is contained in:
@@ -165,6 +165,8 @@ bool gatewayTransportInit() {
|
||||
_client.setCallback(incomingMQTT);
|
||||
|
||||
#if defined(MY_GATEWAY_ESP8266)
|
||||
// Turn off access point
|
||||
WiFi.mode (WIFI_STA);
|
||||
(void)WiFi.begin(MY_ESP8266_SSID, MY_ESP8266_PASSWORD);
|
||||
#ifdef MY_IP_ADDRESS
|
||||
WiFi.config(_clientIp, _gatewayIp, _subnetIp);
|
||||
|
||||
Reference in New Issue
Block a user