Picked up the Waveshare 2.06" amoled after watching the youtube video on it. For some reason this fails to compile. Any idea what may be causing this?
`/home/user/waveshareControl/SmartWatch/SmartWatch.ino:26:23: error: 'wifi_tx_info_t' does not name a type; did you mean 'wifi_sta_info_t'?
26 | void OnDataSent(const wifi_tx_info_t info, esp_now_send_status_t status) {
| ^~~~~~~~~~~~~~
| wifi_sta_info_t
/home/user/waveshareControl/SmartWatch/SmartWatch.ino:26:23: error: 'wifi_tx_info_t' does not name a type; did you mean 'wifi_sta_info_t'?
26 | void OnDataSent(const wifi_tx_info_t info, esp_now_send_status_t status) {
| ^~~~~~~~~~~~~~
| wifi_sta_info_t
/home/user/waveshareControl/SmartWatch/SmartWatch.ino: In function 'void setup()':
/home/user/waveshareControl/SmartWatch/SmartWatch.ino:353:28: error: invalid conversion from 'void ()(const int, esp_now_send_status_t)' to 'esp_now_send_cb_t' {aka 'void ()(const unsigned char, esp_now_send_status_t)'} [-fpermissive]
353 | esp_now_register_send_cb(OnDataSent);
| ^~~~~~~~~~
| |
| void ()(const int, esp_now_send_status_t)
In file included from /home/user/waveshareControl/SmartWatch/SmartWatch.ino:13:
/home/user/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.4-2f7dcd86-v1/esp32s3/include/esp_wifi/include/esp_now.h:180:54: note: initializing argument 1 of 'esp_err_t esp_now_register_send_cb(esp_now_send_cb_t)'
180 | esp_err_t esp_now_register_send_cb(esp_now_send_cb_t cb);
| ~~~~~~~~~~~~~~~~~~^~
exit status 1
Compilation error: 'wifi_tx_info_t' does not name a type; did you mean 'wifi_sta_info_t'?`
Picked up the Waveshare 2.06" amoled after watching the youtube video on it. For some reason this fails to compile. Any idea what may be causing this?
`/home/user/waveshareControl/SmartWatch/SmartWatch.ino:26:23: error: 'wifi_tx_info_t' does not name a type; did you mean 'wifi_sta_info_t'?
26 | void OnDataSent(const wifi_tx_info_t info, esp_now_send_status_t status) {
| ^~~~~~~~~~~~~~
| wifi_sta_info_t
/home/user/waveshareControl/SmartWatch/SmartWatch.ino:26:23: error: 'wifi_tx_info_t' does not name a type; did you mean 'wifi_sta_info_t'?
26 | void OnDataSent(const wifi_tx_info_t info, esp_now_send_status_t status) {
| ^~~~~~~~~~~~~~
| wifi_sta_info_t
/home/user/waveshareControl/SmartWatch/SmartWatch.ino: In function 'void setup()':
/home/user/waveshareControl/SmartWatch/SmartWatch.ino:353:28: error: invalid conversion from 'void ()(const int, esp_now_send_status_t)' to 'esp_now_send_cb_t' {aka 'void ()(const unsigned char, esp_now_send_status_t)'} [-fpermissive]
353 | esp_now_register_send_cb(OnDataSent);
| ^~~~~~~~~~
| |
| void ()(const int, esp_now_send_status_t)
In file included from /home/user/waveshareControl/SmartWatch/SmartWatch.ino:13:
/home/user/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.4-2f7dcd86-v1/esp32s3/include/esp_wifi/include/esp_now.h:180:54: note: initializing argument 1 of 'esp_err_t esp_now_register_send_cb(esp_now_send_cb_t)'
180 | esp_err_t esp_now_register_send_cb(esp_now_send_cb_t cb);
| ~~~~~~~~~~~~~~~~~~^~
exit status 1
Compilation error: 'wifi_tx_info_t' does not name a type; did you mean 'wifi_sta_info_t'?`