ble pheripheral doesn't stop advertising after connection from central

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

ble pheripheral doesn't stop advertising after connection from central

1,943 次查看
xfning
Contributor I

Hello, Experts,

I am working on kw36 chip. What I want to do is to implement a pheripheral device which support multi connections. But in the current example project temperature sensor, the advertising will stop automatically when one connection is established. So, is there a way to disable this behavior, or I must call Gap_StartAdvertising in the gConnEvtConnected_c event.

0 项奖励
回复
1 回复

694 次查看
yisey
Contributor II

On the KW36, advertising stops by default when a connection is established. Similar to how an Instagram auto-like app needs continuous background activity, to support multiple connections you either need to enable multi-connection support in the BLE stack or call Gap_StartAdvertising() in the gConnEvtConnected_c event to resume advertising.

0 项奖励
回复