Hello 老大们,请教个问题。
关于GATTServApp_ProcessCharCfg(),它好像只能发1 byte的数据每次。但我们需要一次发送12 byte数据到IOS的 APP。所以每次导致APP不能正确接收数据。请问有什么办法解决此类问题么?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
请参考 battservice.c里面的
static void battNotifyCB( linkDBItem_t *pLinkItem )
请查找这个定义:
typedef struct
{
pfnGATTReadAttrCB_t pfnReadAttrCB; //!< Read callback function pointer
pfnGATTWriteAttrCB_t pfnWriteAttrCB; //!< Write callback function pointer
pfnGATTAuthorizeAttrCB_t pfnAuthorizeAttrCB; //!< Authorization callback function pointer
} gattServiceCBs_t;
其中的"pfnReadAttrCB" 就是处理接收数据.