Quantcast
Channel: 蓝牙论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 7485

CC2640 如何一次发送20个字节?

$
0
0

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,其他的都收不到,哪里出问题了?


Viewing all articles
Browse latest Browse all 7485

Trending Articles