买了一块开发板CC3235SF-LAUNCHXL,使用自带例程 Out of Box Experience demo,按键SW2,切换为AP模式,此时发现频段是2.4g信道为1,我想改为5G频段,看了源代码没有找配置的地方,想请教一下在这个demo基础上如何将SW2切换的AP模式改为5G频段,具体修改的位置在哪?
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.
您好,
您可以通过添加 AP 通道配置(AP channel configuration)来完成(需要重置 NWP 才能激活新配置):
_u8 val = channel; /* 2.4G: 1-13, 5G: 36,40,44,48 */
sl_WlanSet(SL_WLAN_CFG_AP_ID, SL_WLAN_AP_OPT_CHANNEL, 1, (_u8 *)&val);
您可以在provisioning_task.c中的 ConfigureSimpleLinkToDefaultState() 中配置。