Skip to content

Callback onResult Not Triggered Using NimBLE Library to Find BLE Beacons #788

Discussion options

You must be logged in to vote

If you are using 2.0.0 (master branch) then you need to change the callback function signature.
void onResult(NimBLEAdvertisedDevice* advertisedDevice) { should be void onResult(const NimBLEAdvertisedDevice* advertisedDevice) {

I recommend to always add the override keyword to the functions you are overriding to catch errors like this at compile time.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@GabrielScarpelinDiniz
Comment options

Answer selected by GabrielScarpelinDiniz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants