mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 01:12:01 +00:00
espnow autoreconnect
This commit is contained in:
@@ -18,7 +18,7 @@ esp_now_peer_info_t devices;
|
||||
static adc_oneshot_unit_handle_t adc_xy_handle;
|
||||
sensors_data_t buffer;
|
||||
static int x, y; // Joystick x- and y- axis positions
|
||||
static int espnow_channel = 1;
|
||||
static int espnow_channel = 11;
|
||||
void transmission_init();
|
||||
void wifi_init();
|
||||
|
||||
@@ -156,7 +156,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_deinit(); // Stop ESP-NOW
|
||||
//wifi_init();
|
||||
//esp_now_init();
|
||||
|
Reference in New Issue
Block a user