定时器周期事件里尝试关闭广播,发现无法关闭广播
case TIMER_EVENT:
adv_enabled = FALSE;
GAPRole_SetParameter(GAPROLE_ADVERT_ENABLED, sizeof(uint8_t), &adv_enabled);
break;
Alvin Chen:
SDK版本?
下面的写法都不行吗?
能否抓包看一下?
uint8_t advertEnabled = FALSE; // Turn on Advertising
// Disable connectable advertising.GAPRole_SetParameter(GAPROLE_ADVERT_ENABLED, sizeof(uint8_t),&advertEnabled);