static uint8_t attDeviceName[GAP_DEVICE_NAME_LEN] = "Simple Peripheral";
GGS_SetParameter(GGS_DEVICE_NAME_ATT, sizeof(attDeviceName), attDeviceName);
tmos_memset(attDeviceName, 0, sizeof(attDeviceName));
GAPRole_GetParameter(GGS_DEVICE_NAME_ATT, attDeviceName);
PRINT("device name:%s,%02x,%02x\n",(char*)attDeviceName,attDeviceName[0],attDeviceName[1]);
这样无法获取设备名称,请问该如何处理?
热门产品 :
CH318: 高速USB信号隔离延长器控制芯片