Part Number: CC2640R2F
Hi
I am developing a BLE application that is used to communicate between a mobile phone and a PC via UART. The application was developed on top on ble5_simple_peripheral.
The ideia is that an undefined number of different mobile devices can connect to communicate with the PC, one at a time (I plan to make it 3/4 at the same time in the future, but that is of no concern for now. but let me know if you have any thoughts on this).
Now, I want to be able, from the peripheral (slave) side, to break the connection if i desire. My goal is to prevent a malicious device to keep the connection and cause a Denial of Service.
Another useful thing to know is that if it is possible to prevent a certain device to connect.
I tried to use "GAP_TerminateLinkReq()" but it did not work
Bonus Question:
Is it possible (or feasible) to control the distance that the device can connect, I wanted to only be able to connect at 10 - 20 cm. I know that from Mobile device it is possible to make connection only when there is a certain signal strength. Is it possible to make something similar in the peripheral (slave) side?
thank you