Skip to content

Commit

Permalink
reconnecting wifi
Browse files Browse the repository at this point in the history
  • Loading branch information
jpraus committed Nov 2, 2021
1 parent 484ec02 commit c04043c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platformio/floower/src/connect/WifiConnect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ void WifiConnect::onSocketData(char *data, size_t len) {

void WifiConnect::onSocketConnected() {
ESP_LOGI(LOG_TAG, "Connected to Floud");
reconnectTime = 0;
state = STATE_FLOUD_ESTABLISHED;
}

Expand Down Expand Up @@ -276,6 +277,7 @@ void WifiConnect::onWifiConnected(WiFiEvent_t event, WiFiEventInfo_t info) {

void WifiConnect::onWifiGotIp(WiFiEvent_t event, WiFiEventInfo_t info) {
ESP_LOGI(LOG_TAG, "Wifi got IP");
reconnectTime = 0;
wifiConnected = true;
}

Expand Down

0 comments on commit c04043c

Please sign in to comment.