espnow autoreconnect

This commit is contained in:
2025-07-29 06:17:32 -04:00
parent 6d5d57360d
commit 97cf5221fb

View File

@@ -150,6 +150,7 @@ static void statusDataSend(const uint8_t *mac_addr, esp_now_send_status_t status
devices.channel = espnow_channel;
devices.encrypt = false;
esp_now_add_peer(&devices);
esp_now_register_send_cb(statusDataSend);
if (espnow_channel < 11) {
espnow_channel++;
} else {