How to use getRssi()


I’ve been looking for more since I posted this question a while ago.
There is also a void function, so I put it in, but I get this error.

I still don’t know what to do.

Do you know anyone?

Hello,

to be honest the problem description was not made very well. There is not visible any error just a code what is commented out and another code what seems like it have nothing together with rest in perspective of objects, because getRssi() is method of AdvertisingReportEvents.

getRssi()

Moreover probably this topic was placed to wrong section of the forum, because I believe this is not related to KeilStudio, but insted to Mbed OS. Also an info about used MbedOS version is missing.

BR, Jan


Looking at the mbed-os code you linked, it is mbed-os.lib that I am using.

But what if I want to use mbed-os/connectivity/FEATURE_BLE/include/ble/gap/Events.h ?

I know what the problem is.
I am using mbed-os version 5.1.4, 5.1.4 does not have ble/gap/Events.h.
Events.h exists in the master version and has a getRssi() function, but
When I change the version to master I get a build error.

To use the getRssi() function, I must use a higher version, but a build error occurs and I cannot do it.

you’re spinning in circle

Try to switch to 5.15 and then downgrade 5.14, 5.13, 5.12 and so on, until you found a working one.

BR, Jan