forked from emsesp/EMS-ESP32
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ae8177
commit ce395f4
Showing
2 changed files
with
8 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,17 +101,10 @@ void MqttSettingsService::WiFiEvent(WiFiEvent_t event, WiFiEventInfo_t info) { | |
switch (event) { | ||
case ARDUINO_EVENT_WIFI_STA_GOT_IP: | ||
case ARDUINO_EVENT_ETH_GOT_IP: | ||
emsesp::EMSESP::esp8266React.getNetworkSettingsService()->read([&](NetworkSettings & networkSettings) { | ||
This comment has been minimized.
Sorry, something went wrong. |
||
if (!networkSettings.enableIPv6 && _state.enabled) { | ||
// emsesp::EMSESP::logger().info(F("IPv4 Network connection found, starting MQTT client")); | ||
onConfigUpdated(); | ||
} | ||
}); | ||
break; | ||
case ARDUINO_EVENT_ETH_GOT_IP6: | ||
case ARDUINO_EVENT_WIFI_STA_GOT_IP6: | ||
if (_state.enabled) { | ||
// emsesp::EMSESP::logger().info(F("IPv6 Network connection found, starting MQTT client")); | ||
This comment has been minimized.
Sorry, something went wrong.
daviessm
|
||
// emsesp::EMSESP::logger().info(F("IPv4 Network connection found, starting MQTT client")); | ||
onConfigUpdated(); | ||
} | ||
break; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
With zero Arduino knowledge will this not stop a reconfigure when a v4 address is gained?