03-6021蓝牙源码分析

发布时间 2023-10-25 15:09:21作者: 一步一磕头的菜鸡

一. 非定向广播

1. void app_remote_normal_undir_adv(void)

void app_remote_normal_undir_adv(void) 
{
    // printk("%s\r\n", __FUNCTION__);
    printk("pair adv\r\n");
    uint8 state=0xff;
    if(app_remote_check_bond_state())
    {
        state = app_remote_erase_bondings();  //清除配对信息
        printk("** pair erase_bond:%s\n",(state == 0x00) ? "ok":"fail");
    }
    app_start_pair();
}
1.1. bool app_remote_check_bond_state(void)