BLE从机(16)广播与连接回调

功能:在连接间隔和广播间隔到来时,会进入该回调,可以在回调函数加上其他执行逻辑代码。

LL_ConnectEventRegister(connectCB);
LL_AdvertiseEventRegister(adverCB);
static void connectCB(uint32_t timeUs)
{
PRINT("connect timeUs = %d\r\n", timeUs);
}
static void adverCB(uint32_t timeUs)
{
GPIOB_InverseBits(GPIO_Pin_4);
}

 

posted @   SweetTea_lllpc  阅读(125)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示