ESP-IDF Robot ESP NOW

This commit is contained in:
2024-12-25 02:29:39 -05:00
parent 357ce9949a
commit 8268fdebc5
2 changed files with 1 additions and 1 deletions

View File

View File

@@ -528,7 +528,7 @@ static esp_err_t espnow_init(void) {
send_param->unicast = false;
send_param->broadcast = true;
send_param->state = 0;
send_param->magic = 55;//esp_random(); // Arbitrary number that determines which device is sender/receiver.
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;