mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-02-24 20:53:07 +01:00
Fix iRTC time for N2K bus
This commit is contained in:
@@ -104,8 +104,21 @@ void GwWifi::loop(){
|
||||
if (lastConnectStart > now || (lastConnectStart + RETRY_MILLIS) < now)
|
||||
{
|
||||
LOG_DEBUG(GwLog::LOG,"wifiClient: retry connect to %s", wifiSSID->asCString());
|
||||
WiFi.disconnect();
|
||||
|
||||
//+++++++++ Old part +++++++++++++++++++++
|
||||
// WiFi.disconnect();
|
||||
// connectInternal();
|
||||
//++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
//+++++++++ New part +++++++++++++++++++++
|
||||
WiFi.disconnect(true);
|
||||
delay(300);
|
||||
esp_wifi_stop();
|
||||
delay(100);
|
||||
esp_wifi_start();
|
||||
connectInternal();
|
||||
//++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
}
|
||||
}
|
||||
else{
|
||||
|
||||
Reference in New Issue
Block a user