Hello everyone,
currently I am working on my application which is based on the multirole example and with the SDK17.1. My target is if one device connected to another the central device should keep the device ID in mind and never connect or better would be newer try to connect again to the same device. For example if there are 10 devices they should never reconnect or try to connect to the same device again. It should always try to connect to a new one. What would be the best way to implement it?
I tried one thing. I store the device ID on the central device and if the device gets the BLE_GAP_EVT_ADV_REPORT Event it went through a for-loop and check if the device was already connected. If yes I started the disconnect function sd_ble_gap_disconnect(). This method doesnt worked (how can I stop the connecting process?)and I dont like it. What would be the best method to create such kind of "blacklist"?
Best regards
Hani