在开发中我遇到一个问题,在创建了一个广播后,开启广播,开启后3分钟广播会自动停止,进入AdvEventHandler里,先产生一个ADV_END_AFTER_DISABLE事件,再产生一个ADV_SET_TERMINATED事件,TERMINATED事件中输出log,teminated信息中的status=0x3c,connhandle=0xff,numCompAdvEvts=0,这个问题出现的原因是什么呢?以下图片是我写的创建广播,开启广播以及注册的广播监测回调函数,请大家帮忙看下,谢谢
在开发中我遇到一个问题,在创建了一个广播后,开启广播,开启后3分钟广播会自动停止,进入AdvEventHandler里,先产生一个ADV_END_AFTER_DISABLE事件,再产生一个ADV_SET_TERMINATED事件,TERMINATED事件中输出log,teminated信息中的status=0x3c,connhandle=0xff,numCompAdvEvts=0,这个问题出现的原因是什么呢?以下图片是我写的创建广播,开启广播以及注册的广播监测回调函数,请大家帮忙看下,谢谢
Are you using directed advertisements? The Bluetooth Core Specification sets a maximum value of directed advertisements. In this case, receiving 0x3C means that the limit was reached and has "Timed out." You will have to restart them if you want to go past this limit.
If you look at the API for GapAdv_enable, you'll see that you're setting the parameter for enableOptions to GAP_ADV_ENABLE_OPTIONS_USE_MAX.
Which states that there is a spec-defined maximum.
If you're using directed advertisements, then there is no error and this expected behavior. If you're not using directed advertisements, please provide your SDK version and memory usage when the issue occurs.