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

White-list without bond manager

Hi

Is possible to use GAP White-list to restrict connections without the bond manager system ? Just by save the white-list with pstorage.....

for exemple, first open connection: retrieve peer caracteristics with ble_gap_evt_connected_t https://devzone.nordicsemi.com/documentation/nrf51/5.2.0/html/a00225.html

and save them in whitelist... https://devzone.nordicsemi.com/documentation/nrf51/5.2.0/html/a00247.html

Parents
  • I think i don't build my white-list structure correctly.irk keys adds problems. In all examples, whitelist come from the bond manager.

    How to correctly generate a whitelist ? Is possible to use bond manager get whitelist function without the bond operation ?

  • As I said in my first reply, there shouldn't be any problems with this. If you just want to use addresses for whitelisting, just make sure that the irk_count field is set to 0, in which case the contents for IRKs doesn't matter. Also note that the pp_addrs should be initialized with a pointer to an array of addresses (i.e. if you have ble_gap_addr_t addresses[2], you should use &addresses as parameter).

    If you still have issues, please post your complete code project, either here or in a support case.

Reply
  • As I said in my first reply, there shouldn't be any problems with this. If you just want to use addresses for whitelisting, just make sure that the irk_count field is set to 0, in which case the contents for IRKs doesn't matter. Also note that the pp_addrs should be initialized with a pointer to an array of addresses (i.e. if you have ble_gap_addr_t addresses[2], you should use &addresses as parameter).

    If you still have issues, please post your complete code project, either here or in a support case.

Children
No Data
Related