ESP-IDF Robot ESP NOW

This commit is contained in:
2024-12-24 12:57:02 -05:00
parent 842303de93
commit 000cf24e0a
3 changed files with 2 additions and 2 deletions

View File

View File

@@ -1 +1 @@
610e0e35608326be43801e61bfb2c343eeed3002 842303de9361eceb6ff5a5b1cc476c758a07bdba

View File

@@ -371,7 +371,7 @@ static void espnow_task (void *pvParameter) {
ESP_LOGI(TAG, "send data to "MACSTR"", MAC2STR(send_cb->mac_addr)); ESP_LOGI(TAG, "send data to "MACSTR"", MAC2STR(send_cb->mac_addr));
memcpy(send_param->dest_mac, send_cb->mac_addr, ESP_NOW_ETH_ALEN); memcpy(send_param->dest_mac, send_cb->mac_addr, ESP_NOW_ETH_ALEN);
example_espnow_data_prepare(send_param); espnow_data_prepare(send_param);
/* Send the next data after the previous data is sent. */ /* Send the next data after the previous data is sent. */
if (esp_now_send(send_param->dest_mac, send_param->buffer, send_param->len) != ESP_OK) { if (esp_now_send(send_param->dest_mac, send_param->buffer, send_param->len) != ESP_OK) {