This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to know the relation of peer addresses.

Hi, All,

I'm testing multi-connection central function. And I am struggled in getting relation of address.

AFSK, there are several types of address in BLE.

I found that the peer address is changed after connection established with same peer device. I can read the peer address information from "ble_evt_t" data which is passed to the on_ble_evt() and ble_nus_c_evt_handler().

Peer address read in "on_ble_evt ()" and "ble_nus_c_evt_handler()" are not same.

My plan service logic is as followed

  1. when receiving adverting packet, I extract peer address and registered in local DB.
  2. Can register Several peripherals in local DB
  3. When receiving notify packet from some peripheral with peer address, I want to find the DB registered at adverting stage with connection stage's peer address.

How can I find the adverting stage's peer address by connection stage' peer address?

BR Paul

Parents Reply Children
No Data
Related