ESP-IDF Robot ESP NOW

This commit is contained in:
2024-12-25 02:11:46 -05:00
parent b94ad13920
commit 8a28f39d58

View File

@@ -312,6 +312,7 @@ int example_espnow_data_parse(uint8_t *data, uint16_t data_len, uint8_t *state,
buf->crc = 0; buf->crc = 0;
crc_cal = esp_crc16_le(UINT16_MAX, (uint8_t const *)buf, data_len); crc_cal = esp_crc16_le(UINT16_MAX, (uint8_t const *)buf, data_len);
// Display received data. // Display received data.
ESP_LOGW(TAG, "Received data size: %d", data_len);
ESP_LOGW(TAG, "Received payload data is: %x", buf->payload[0]); ESP_LOGW(TAG, "Received payload data is: %x", buf->payload[0]);
if (crc_cal == crc) { if (crc_cal == crc) {