您好
我想cc2640走BT透過SimpleProfile_SetParameter()送data到pc tool讀取,
但我發現當送2個字元時會失敗,而其它長度的值都成功,以下測試說明:
SimpleProfile_SetParameter(SIMPLEPROFILE_CHAR6, 1, "a"); // pc端能正常讀到"a"
SimpleProfile_SetParameter(SIMPLEPROFILE_CHAR6, 2, "ab"); // pc端讀不到
SimpleProfile_SetParameter(SIMPLEPROFILE_CHAR6, 3, "abc"); // pc端正常讀到"abc"
SimpleProfile_SetParameter(SIMPLEPROFILE_CHAR6, 4, "abcd"); // pc端正常讀到"abcd"
一路往下追:
--> GATTServApp_ProcessCharCfg() //simpleProfileChar6 have data "ab"
--> gattServApp_SendNotiInd() //pAttr->pValue have data "ab"
--> GATT_Notification() //¬i, noti.pValue have data "ab"
--> gattIndNoti() //msg->pIndNoti->handleValueNoti.pValue = "ab"
--> sendWaitMatchCS()// 無法往下追了
是否有idea??