在官方的歷程中有這樣一段程序:
else { //?Do?a?read attReadReq_t?req; req.handle?=?centralConnList[CONNECT0_ITEM].charHdl;???????? if(?GATT_ReadCharValue(?centralConnList[CONNECT0_ITEM].connHandle,?&req,?centralTaskId?)?==?SUCCESS?) { centralConnList[CONNECT0_ITEM].procedureInProgress?=?TRUE; //centralDoWrite?=?!centralDoWrite; } }
通過查閱手冊(cè)得知,是用來讀取服務(wù)器特征值的,特意查看了pReg的結(jié)構(gòu)體定義,但目前有個(gè)疑惑是不知道將數(shù)據(jù)讀到了那里,請(qǐng)大佬指教??!謝謝!??!
/** ?*?Read?Request?format. ?*/ typedef?struct { ??uint16?handle;?//!<?Handle?of?the?attribute?to?be?read?(must?be?first?field) }?attReadReq_t;
熱門產(chǎn)品 :
CH585: 集成高速USB和NFC的藍(lán)牙MCU