引用: daichuangs 发表于 2019-9-20 07:30
嗯,我用你的方法试过了,确实可以,那么请问我怎样把蓝牙设备的名称改成设备的MAC地址呢。我看每次初始化的时候就用GGS_SetParameter来设置蓝牙名称了,我在peripheralStateNotificationCB 中增加 GAPRole_GetParameter(GAPROLE_BD_ADDR, systemId);然后再用GGS_SetParameter来设置蓝牙名称,可是改不过来 ...
The device name is a characteristic which resides in the GGS (GapGattServer) profile, and source for this profile is not public. In order to change the device name OTA with standard GATT write commands, it is necessary to first change the permission to writable with
GGS_SetParameter( GGS_W_PERMIT_DEVICE_NAME_ATT, sizeof ( uint8 ), &devNamePermission );
Additionally, you can register a callback function with GGS to notify the application when the device name has been changed.
引用: daichuangs 发表于 2019-9-20 07:30
嗯,我用你的方法试过了,确实可以,那么请问我怎样把蓝牙设备的名称改成设备的MAC地址呢。我看每次初始化的时候就用GGS_SetParameter来设置蓝牙名称了,我在peripheralStateNotificationCB 中增加 GAPRole_GetParameter(GAPROLE_BD_ADDR, systemId);然后再用GGS_SetParameter来设置蓝牙名称,可是改不过来 ...
The device name is a characteristic which resides in the GGS (GapGattServer) profile, and source for this profile is not public. In order to change the device name OTA with standard GATT write commands, it is necessary to first change the permission to writable with
GGS_SetParameter( GGS_W_PERMIT_DEVICE_NAME_ATT, sizeof ( uint8 ), &devNamePermission );
Additionally, you can register a callback function with GGS to notify the application when the device name has been changed.
举报