CH57x、CH58x、CH59x使用BLE功能时设置广播信道
三个广播信道全部使能,或者单独使能其中之一
#define GAP_ADVCHAN_37 0x01 //37通道,频率2402M
#define GAP_ADVCHAN_38 0x02 //38通道,频率2426M
#define GAP_ADVCHAN_39 0x04 //39通道,频率2480M
#define GAP_ADVCHAN_ALL (GAP_ADVCHAN_37 | GAP_ADVCHAN_38 | GAP_ADVCHAN_39) //三个通道都发送广播
uint8_t advertising_channel = GAP_ADVCHAN_37;
GAPRole_SetParameter(GAPROLE_ADV_CHANNEL_MAP, sizeof(uint8_t), &advertising_channel);

浙公网安备 33010602011771号