case SIMPLEPROFILE_CHAR2:
case SIMPLEPROFILE_CHAR2: if ( len == sizeof ( uint8 ) ) { uint8 CacheData[20] = { 0xaa ,0x01 ,0x02 ,0x03 ,0x04 ,0x05 ,0x06 ,0x07 ,0x08 ,0x09, 0x10 ,0x11 ,0x12 ,0x13 ,0x14 ,0x15 ,0x16 ,0x17 ,0x18 ,0x19}; VOID memcpy( simpleProfileChar2, CacheData, 20 ); // See if Notification has been enabled GATTServApp_ProcessCharCfg( simpleProfileChar2Config, simpleProfileChar2, FALSE, simpleProfileAttrTbl, GATT_NUM_ATTRS( simpleProfileAttrTbl ), INVALID_TASK_ID, simpleProfile_ReadAttrCB ); } else { ret = bleInvalidRange; } break;
我这样只能收 0xaa,其他的都收不到,哪里出问题了?