mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 12:11:00 +00:00
espnow autoreconnect
This commit is contained in:
@@ -146,7 +146,11 @@ static void statusDataSend(const uint8_t *mac_addr, esp_now_send_status_t status
|
||||
} else {
|
||||
espnow_channel = 1;
|
||||
}
|
||||
transmission_init();
|
||||
|
||||
esp_now_deinit(); // Stop ESP-NOW
|
||||
esp_wifi_set_channel(newChannel, WIFI_SECOND_CHAN_NONE); // Change channel
|
||||
esp_now_init();
|
||||
|
||||
}
|
||||
|
||||
vTaskDelay(pdMS_TO_TICKS(5000));
|
||||
|
Reference in New Issue
Block a user