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

Can a BLE Peripheral Conditionally Reject Connection Request from BLE Central?

Without making use of white list approach, can a BLE peripheral reject connection request sent by a BLE central? I want my application layer to be notified when the BLE peripheral receives a request and let the user tap on 'YES' or 'NO' when it receives this request and accordingly accept or reject that request.

Is this possible? or BLE Peripheral allows any connection once it's made connectable?

Parents
  • Not a direct answer to your question, but might help. There is no reason to perform connectable advertisements unless you want to be connected to. If the accessory does not want to initialize a connection, simply advertise non-connectable advertisements. The user interaction should be "do you try to get connected?" Alternatively, you could get connected, disconnect, prompt the user, and then restart connectable advertisements and hope that the central connects to you again.

Reply
  • Not a direct answer to your question, but might help. There is no reason to perform connectable advertisements unless you want to be connected to. If the accessory does not want to initialize a connection, simply advertise non-connectable advertisements. The user interaction should be "do you try to get connected?" Alternatively, you could get connected, disconnect, prompt the user, and then restart connectable advertisements and hope that the central connects to you again.

Children
No Data
Related