2604R2F 有什么办法能让蓝牙广播 发几次以后间隔 几分钟再发?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
修改蓝牙广播间隔即可
#define DEFAULT_ADVERTISING_INTERVAL 160 可根据需要修改此值
//....
// Set advertising interval
{
uint16_t advInt = DEFAULT_ADVERTISING_INTERVAL;
GAP_SetParamValue(TGAP_LIM_DISC_ADV_INT_MIN, advInt);
GAP_SetParamValue(TGAP_LIM_DISC_ADV_INT_MAX, advInt);
GAP_SetParamValue(TGAP_GEN_DISC_ADV_INT_MIN, advInt);
GAP_SetParamValue(TGAP_GEN_DISC_ADV_INT_MAX, advInt);
}
#define DEFAULT_ADVERTISING_INTERVAL 160 可根据需要修改此值