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]);
这样无法获取设备名称,请问该如何处理?
热门产品 :
CH32L103: 32位PDUSB低功耗单片机