Other Parts Discussed in Thread: SYSCONFIG
目前我嘗試的方向是當check_Len = 13時中斷廣播,
之後跳到case BLEAPPUTIL_ADV_END_AFTER_DISABLE進行GGS_SetParameter(GGS_DEVICE_NAME_ATT, GAP_DEVICE_NAME_LEN, attDeviceName);
然後再開啟廣播,
但這樣的作法並沒有效果,我打開nRF查看,Device Name並沒有更新成新的。
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.
1. appMainParams.deviceNameAtt 与设备名称相关。
此外,它们还通过“bleStack_initGatt”和“GGS_SetParameter”注册。
2.设备名称存储在 attDeviceName 中。该变量设置为 SysConfig 中配置的任何值。如果您只想在其他设备扫描您的外设时更改设备名称,那么您只需更改 scanResData1 的内容并将扫描响应数据重新加载到您的广告句柄中。这将使扫描您外围设备的其他设备将收到不同的名称。
3.GGS_SetParameter函数描述 如果未起效的话可能是attDeviceName这个参数格式有问题 指向要写入的数据的指针