从机端除了在simpleProfileChangeCB( uint8 paramID )函数中通过SimpleProfile_GetParameter( SIMPLEPROFILE_CHAR1, newValueBuf )读取主机端发送来的消息外,还可以通过什么方式读取数据
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.
从机端除了在simpleProfileChangeCB( uint8 paramID )函数中通过SimpleProfile_GetParameter( SIMPLEPROFILE_CHAR1, newValueBuf )读取主机端发送来的消息外,还可以通过什么方式读取数据
在simpleBLECentral中,
主机接收数据的函数是 simpleBLECentralProcessGATTMsg()
在simpleBLEPeripheral中,
从机接收数据的函数是simpleProfile_WriteAttrCB(),被写的回调。