From 1b42d4262d3b06e1ccd722d3c4d05d23ecf54ce8 Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Wed, 25 Dec 2024 00:53:42 -0500 Subject: [PATCH] ESP-IDF Robot ESP NOW --- ESP-IDF_Robot/main/blink_example_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ESP-IDF_Robot/main/blink_example_main.c b/ESP-IDF_Robot/main/blink_example_main.c index f8a279dcd..9e7a81dea 100644 --- a/ESP-IDF_Robot/main/blink_example_main.c +++ b/ESP-IDF_Robot/main/blink_example_main.c @@ -281,6 +281,7 @@ static void espnow_recv_cb (const esp_now_recv_info_t *recv_info, const uint8_t evt.id = ESPNOW_RECV_CB; memcpy(recv_cb->mac_addr, mac_addr, ESP_NOW_ETH_ALEN); recv_cb->data = malloc(len); + // Display payload received. ESP_LOGW(TAG, "Received payload: %u", (unsigned int)recv_cb->data); if (recv_cb->data == NULL) { ESP_LOGE(TAG, "Malloc receive data fail");