Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 9 months ago.
How to add centrals to peripheral whitelist? How to use BLE_API in mbed OS5
Hi,
I am trying to create a whitelist on a peripheral nrf51822 that allows connection from defined centrals only (mobile phones). I found the following:
"With the latest update of BLE-API, it is possible to use white listing. In the file Gap.h lives the following functions which deal with white listing: • Gap::setWhitelist Set the whitelist to use • Gap::setXXXXPolicyMode set the policy mode regarding whitelisting "
I am not sure how to find or add the BLE_API to other simple mbed os5 examples such as "mbed-os-example-ble-Button", neither do I know how to implement the whitelist (any documentation, example?)
Thank you for your help,
Nicolas
Nicolas