You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, your library looks great! I'm getting the following error when using it for the first time today.
Error:
BLEConnectionStatus.h
'void BleConnectionStatus::onConnect(NimBLEServer*, NimBLEConnInfo&)' marked 'override', but does not override [Ln 17, Col 10]
'void BleConnectionStatus::onDisconnect(NimBLEServer*, NimBLEConnInfo&)' marked 'override', but does not override [Ln 18, Col 10]
BLEOutputReceiver.h
'void BLEOutputReceiver::onWrite(NimBLECharacteristic*,NimBLEConnInfo&)' marked 'override', but does not override [Ln17, Col 10]
It seems that the Arduino IDE auto-includes a previous declaration if there isn't one. PlatformIO doesn't do that.
I removed the 'override' statement at the end of those 3 lines and recompiled without a problem.
The text was updated successfully, but these errors were encountered:
Judging from the compilation errors, you need to manually install version 2.0.0 of NimBLE Arduino. Although NimBLE hasn't released version 2.0.0 on GitHub, you can directly clone their repository to get the latest version.
For more information about this issue, you can check #240 .
Hello, your library looks great! I'm getting the following error when using it for the first time today.
Error:
BLEConnectionStatus.h
'void BleConnectionStatus::onConnect(NimBLEServer*, NimBLEConnInfo&)' marked 'override', but does not override [Ln 17, Col 10]
'void BleConnectionStatus::onDisconnect(NimBLEServer*, NimBLEConnInfo&)' marked 'override', but does not override [Ln 18, Col 10]
BLEOutputReceiver.h
'void BLEOutputReceiver::onWrite(NimBLECharacteristic*,NimBLEConnInfo&)' marked 'override', but does not override [Ln17, Col 10]
It seems that the Arduino IDE auto-includes a previous declaration if there isn't one. PlatformIO doesn't do that.
I removed the 'override' statement at the end of those 3 lines and recompiled without a problem.
The text was updated successfully, but these errors were encountered: