mirror of
				https://github.com/alexandrebobkov/ESP-Nodes.git
				synced 2025-11-04 16:04:09 +00:00 
			
		
		
		
	espnow autoreconnect
This commit is contained in:
		@@ -149,6 +149,8 @@ static void statusDataSend(const uint8_t *mac_addr, esp_now_send_status_t status
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        esp_now_del_peer(receiver_mac);
 | 
			
		||||
        esp_now_deinit();
 | 
			
		||||
        esp_now_init();
 | 
			
		||||
        memcpy(devices.peer_addr, receiver_mac, 6);
 | 
			
		||||
        devices.channel = espnow_channel;
 | 
			
		||||
        devices.encrypt = false;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user