Closed sirfragles closed 1 year ago
Yes, I'm it's compile for XIAO ESP32C3
my Ide Arduino is 2.1.0, @sirfragles what is your version of the esp32 library?, i am using 2.0.9 and i have the error below
c:\Users\Eonassis\Documents\Arduino\libraries\ESP32-ANCS-Notifications-fix\src\esp32notifications.cpp: In member function 'bool BLENotifications::begin(const char)':
c:\Users\Eonassis\Documents\Arduino\libraries\ESP32-ANCS-Notifications-fix\src\esp32notifications.cpp:108:68: error: invalid new-expression of abstract class type 'NotificationSecurityCallbacks'
BLEDevice::setSecurityCallbacks(new NotificationSecurityCallbacks()); // @todo memory leak?
^
In file included from c:\Users\Eonassis\Documents\Arduino\libraries\ESP32-ANCS-Notifications-fix\src\esp32notifications.cpp:11:
c:\Users\Eonassis\Documents\Arduino\libraries\ESP32-ANCS-Notifications-fix\src\ble_security.h:6:7: note: because the following virtual functions are pure within 'NotificationSecurityCallbacks':
class NotificationSecurityCallbacks : public BLESecurityCallbacks {
^~~~~~~~~
In file included from c:\Users\Eonassis\Documents\Arduino\libraries\ESP32-ANCS-Notifications-fix\src\ble_security.h:4,
from c:\Users\Eonassis\Documents\Arduino\libraries\ESP32-ANCS-Notifications-fix\src\esp32notifications.cpp:11:
C:\Users\Eonassis\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\BLE\src/BLESecurity.h:69:15: note: 'virtual bool BLESecurityCallbacks::onConfirmPIN(uint32_t)'
virtual bool onConfirmPIN(uint32_t pin) = 0;
^~~~
c:\Users\Eonassis\Documents\Arduino\libraries\ESP32-ANCS-Notifications-fix\src\ancs_ble_client.cpp: In member function 'void ANCSBLEClient::setup(const BLEAddress)':
c:\Users\Eonassis\Documents\Arduino\libraries\ESP32-ANCS-Notifications-fix\src\ancs_ble_client.cpp:86:71: error: invalid new-expression of abstract class type 'NotificationSecurityCallbacks'
BLEDevice::setSecurityCallbacks(new NotificationSecurityCallbacks()); // @todo memory leak?
^
In file included from c:\Users\Eonassis\Documents\Arduino\libraries\ESP32-ANCS-Notifications-fix\src\ancs_ble_client.cpp:3:
c:\Users\Eonassis\Documents\Arduino\libraries\ESP32-ANCS-Notifications-fix\src\ble_security.h:6:7: note: because the following virtual functions are pure within 'NotificationSecurityCallbacks':
class NotificationSecurityCallbacks : public BLESecurityCallbacks {
^~~~~~~~~
In file included from c:\Users\Eonassis\Documents\Arduino\libraries\ESP32-ANCS-Notifications-fix\src\ble_security.h:4,
from c:\Users\Eonassis\Documents\Arduino\libraries\ESP32-ANCS-Notifications-fix\src\ancs_ble_client.cpp:3:
C:\Users\Eonassis\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\BLE\src/BLESecurity.h:69:15: note: 'virtual bool BLESecurityCallbacks::onConfirmPIN(uint32_t)'
virtual bool onConfirmPIN(uint32_t pin) = 0;
^~~~
exit status 1
Compilation error: exit status 1
@sirfragles does this solve the problem in compiling in the Arduino IDE? I'm waiting a long time for the solution.