how to limit matser to connect my slave

6 posts / 0 new
Last post
RandyYu
Offline
Last seen:2 years 10 months ago
加入:2015-01-28 08:49
how to limit matser to connect my slave

I don't want any master can connect to my slave.
how can realize the function?

Device:
MT_dialog
Offline
Last seen:2 months 1 week ago
工作人员
加入:2015-06-08 11:34
Hi RandyYu,

Hi RandyYu,

The BLE has different features for doing this, you can use the white list and dont accept scan requests or connection request from anyone besides the devices in the white list or you can use the directed advertising feature, or you can even check the bd address of the device that just connected with you and immidiatelly issue a disconnection event via using software. The implementation depends on your application and what you would like to do. For more info regarding the white list you can have at the RW-BLE-GAP-IS or you can have a look at the keyboard reference design that uses the white list.

Thanks MT_dialog

RandyYu
Offline
Last seen:2 years 10 months ago
加入:2015-01-28 08:49
If I set .app_on_connection =

If I set .app_on_connection = NULL. Can it ignore/reject any connect request?

Gongyu_Dialog
Offline
Last seen:4 days 5 hours ago
加入:2016-04-27 07:07
yes, the link would not be

yes, the link would not be established. But it is still suggest to use the direct-connect adv or non-connect adv

RandyYu
Offline
Last seen:2 years 10 months ago
加入:2015-01-28 08:49
change ADV_CONN_UNDIR to ADV

change ADV_CONN_UNDIR to ADV_NONCONN_UNDIR?

Gongyu_Dialog
Offline
Last seen:4 days 5 hours ago
加入:2016-04-27 07:07
正确的

正确的