在官方的历程中有这样一段程序:
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; } }
通过查阅手册得知,是用来读取服务器特征值的,特意查看了pReg的结构体定义,但目前有个疑惑是不知道将数据读到了那里,请大佬指教!!谢谢!!!
/** * Read Request format. */ typedef struct { uint16 handle; //!< Handle of the attribute to be read (must be first field) } attReadReq_t;
热门产品 :
USB3.0 HUB控制器:CH634