BLE - Reading the connected device RSSI

The official PYBD running MicroPython, and its accessories.
Target audience: Users with a PYBD
Post Reply
User avatar
devnull
Posts: 473
Joined: Sat Jan 07, 2017 1:52 am
Location: Singapore / Cornwall
Contact:

BLE - Reading the connected device RSSI

Post by devnull » Thu Nov 07, 2019 3:06 am

Hi;

Yes, lots of questions about BLE, sorry about that.

While I can connect to the device and read it's service values, there's no service address for the RSSI.

So how can I get a connected device's RSSI value ??

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: BLE - Reading the connected device RSSI

Post by jimmo » Thu Nov 07, 2019 4:19 am

We don't currently provide an interface for this (there's a low-level mechanism for this in the BLE stack though). We'd have to add something like ble.gap_rssi(conn_handle)

At the moment the only way to access rssi is during scan.

Can you please add a comment to https://github.com/micropython/micropython/issues/5186

User avatar
devnull
Posts: 473
Joined: Sat Jan 07, 2017 1:52 am
Location: Singapore / Cornwall
Contact:

Re: BLE - Reading the connected device RSSI

Post by devnull » Thu Nov 07, 2019 6:03 am


Post Reply