I had a esp now example from this website
working using (3) XAIO ESP32-C3's. This was a couple weeks ago. I started up the arduino IDE yesterday for the first time in a while and it made me sit threw some long updates and now the sender_board.ino doesn't compile:
C:\Users\raweg\dev\Ardiuno\sender_board_2\sender_board_2.ino: In function 'void setup()':
C:\Users\raweg\dev\Ardiuno\sender_board_2\sender_board_2.ino:132:28: error: invalid conversion from 'void (*)(const uint8_t*, esp_now_send_status_t)' {aka 'void (*)(const unsigned char*, esp_now_send_status_t)'} to 'esp_now_send_cb_t' {aka 'void (*)(const wifi_tx_info_t*, esp_now_send_status_t)'} [-fpermissive]
132 | esp_now_register_send_cb(OnDataSent);
| ^~~~~~~~~~
| |
| void (*)(const uint8_t*, esp_now_send_status_t) {aka void (*)(const unsigned char*, esp_now_send_status_t)}
In file included from C:\Users\raweg\dev\Ardiuno\sender_board_2\sender_board_2.ino:7:
C:\Users\raweg\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32c3/include/esp_wifi/include/esp_now.h:185:54: note: initializing argument 1 of 'esp_err_t esp_now_register_send_cb(esp_now_send_cb_t)'
185 | esp_err_t esp_now_register_send_cb(esp_now_send_cb_t cb);
| ~~~~~~~~~~~~~~~~~~^~
exit status 1
Compilation error: invalid conversion from 'void (*)(const uint8_t*, esp_now_send_status_t)' {aka 'void (*)(const unsigned char*, esp_now_send_status_t)'} to 'esp_now_send_cb_t' {aka 'void (*)(const wifi_tx_info_t*, esp_now_send_status_t)'} [-fpermissive]
