mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-09-01 19:58:19 +00:00
ESP-IDF Robot ESP NOW
This commit is contained in:
0
ESP-IDF_Robot/build/.ninja_lock
Normal file
0
ESP-IDF_Robot/build/.ninja_lock
Normal file
@@ -1 +1 @@
|
|||||||
6b37bdfd19a352b6a3b021c2434ef4f5b501c7c3
|
b96ffb9cfd6b6d45841911049ffe12363094b728
|
||||||
|
@@ -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;
|
evt.id = ESPNOW_RECV_CB;
|
||||||
memcpy(recv_cb->mac_addr, mac_addr, ESP_NOW_ETH_ALEN);
|
memcpy(recv_cb->mac_addr, mac_addr, ESP_NOW_ETH_ALEN);
|
||||||
recv_cb->data = malloc(len);
|
recv_cb->data = malloc(len);
|
||||||
|
ESP_LOGW(TAG, "Received payload: %i", data);
|
||||||
if (recv_cb->data == NULL) {
|
if (recv_cb->data == NULL) {
|
||||||
ESP_LOGE(TAG, "Malloc receive data fail");
|
ESP_LOGE(TAG, "Malloc receive data fail");
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user