-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot understand reasons of next errors: #340
Comments
The NimBLE library's API has been updated, necessitating several modifications to both the .h and .cpp files to align with the new interface. |
BleKeyboard.h: Include additional libraries IS:
NEW:
Change the following lines IS:
NEW:
|
I've temporality worked around the issue by using the old version of NimBLE in PlatformIO like so:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In file included from D:\Arduino_Projects\RGT_BT_steering\RGT_BT_steering.ino:22:
d:\Users\Serge\Documents\Arduino\libraries\ESP32_BLE_Keyboard/BleKeyboard.h:131:60: error: expected class-name before ',' token
131 | class BleKeyboard : public Print, public BLEServerCallbacks, public BLECharacteristicCallbacks
| ^
d:\Users\Serge\Documents\Arduino\libraries\ESP32_BLE_Keyboard/BleKeyboard.h:19:36: error: 'NimBLEAdvertising' does not name a type; did you mean 'BLEAdvertising'?
19 | #define BLEAdvertising NimBLEAdvertising
| ^~~~~~~~~~~~~~~~~
d:\Users\Serge\Documents\Arduino\libraries\ESP32_BLE_Keyboard/BleKeyboard.h:138:3: note: in expansion of macro 'BLEAdvertising'
138 | BLEAdvertising* advertising;
| ^~~~~~~~~~~~~~
d:\Users\Serge\Documents\Arduino\libraries\ESP32_BLE_Keyboard/BleKeyboard.h:176:16: error: 'virtual void BleKeyboard::onConnect(NimBLEServer*)' marked 'override', but does not override
176 | virtual void onConnect(BLEServer* pServer) override;
| ^~~~~~~~~
d:\Users\Serge\Documents\Arduino\libraries\ESP32_BLE_Keyboard/BleKeyboard.h:177:16: error: 'virtual void BleKeyboard::onDisconnect(NimBLEServer*)' marked 'override', but does not override
177 | virtual void onDisconnect(BLEServer* pServer) override;
| ^~~~~~~~~~~~
d:\Users\Serge\Documents\Arduino\libraries\ESP32_BLE_Keyboard/BleKeyboard.h:178:16: error: 'virtual void BleKeyboard::onWrite(NimBLECharacteristic*)' marked 'override', but does not override
178 | virtual void onWrite(BLECharacteristic* me) override;
| ^~~~~~~
The text was updated successfully, but these errors were encountered: