配对与绑定
时间:10-02
整理:3721RD
点击:
我看例程,大多数都是用这两个函数
static void ProcessPasscodeCB(uint8 *deviceAddr,uint16 connectionHandle,uint8 uiInputs,uint8 uiOutputs )
static void ProcessPairStateCB( uint16 connHandle, uint8 state, uint8 status )
例如香瓜的博客 http://blog.csdn.net/feilusia/article/details/50212945
但是我增加了控制手机拍照的服务是否需要用hiddev里面的两个函数
static void hidDevPairStateCB( uint16 connHandle, uint8 state, uint8 status )
static void hidDevPasscodeCB( uint8 *deviceAddr, uint16 connectionHandle, uint8 uiInputs, uint8 uiOutputs )
参见http://www.deyisupport.com/question_answer/wireless_connectivity/bluetooth/f/103/p/127469/356007.aspx#356007