Skip to content

Commit 72a40d6

Browse files
committed
Merge pull request #388 from mysensors/turn-off-access-point-on-wifi-mqtt
Turn off access point when running ESP8266 MQTT client
2 parents 24aba67 + 3b18b29 commit 72a40d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: libraries/MySensors/core/MyGatewayTransportMQTTClient.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ bool gatewayTransportInit() {
165165
_client.setCallback(incomingMQTT);
166166

167167
#if defined(MY_GATEWAY_ESP8266)
168+
// Turn off access point
169+
WiFi.mode (WIFI_STA);
168170
(void)WiFi.begin(MY_ESP8266_SSID, MY_ESP8266_PASSWORD);
169171
#ifdef MY_IP_ADDRESS
170172
WiFi.config(_clientIp, _gatewayIp, _subnetIp);

0 commit comments

Comments
 (0)