ESP-NOW: invalid conversion in esp_now_register_recv_cb
- ESP32 core 3.x
You may see
Why it happens
- In core 3.x the receive function gets an
esp_now_recv_info_tinstead of only the sender's address.
How to fix it
- Change the function to
void onReceive(const esp_now_recv_info_t *info, const uint8_t *data, int len). - Use
info->src_addrwhere the code usedmac. - Or install ESP32 core 2.0.17.
It worked if: Verify passes and the second board receives.
Related errors
Tutorials where it can happen
Seen in a real run (some lines are close variants of it). Produced with Arduino CLI 1.5.1 and ESP32 core 3.1.3. Sources: Espressif: ESP-NOW.
Didn't help? Search another error or ask us.

