ESP-IDF Robot ESP NOW

This commit is contained in:
2024-12-24 19:33:20 -05:00
parent 5a143a0867
commit 7b6fc65bb9
16 changed files with 7908 additions and 8755 deletions

View File

@@ -522,7 +522,7 @@ static esp_err_t espnow_init(void) {
send_param->unicast = false;
send_param->broadcast = true;
send_param->state = 0;
send_param->magic = esp_random();
send_param->magic = esp_random(); // Arbitrary number that determines which device is sender/receiver.
send_param->count = CONFIG_ESPNOW_SEND_COUNT;
send_param->delay = CONFIG_ESPNOW_SEND_DELAY;
send_param->len = CONFIG_ESPNOW_SEND_LEN;