mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 03:42:24 +00:00
espnow autoreconnect
This commit is contained in:
@@ -148,7 +148,7 @@ static void statusDataSend(const uint8_t *mac_addr, esp_now_send_status_t status
|
|||||||
}
|
}
|
||||||
|
|
||||||
esp_now_deinit(); // Stop ESP-NOW
|
esp_now_deinit(); // Stop ESP-NOW
|
||||||
esp_wifi_set_channel(espnow_channel, WIFI_SECOND_CHAN_NONE); // Change channel
|
wifi_init();
|
||||||
esp_now_init();
|
esp_now_init();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user