API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IBTBIPRESPONDER_GETEVENT()

Brew Release
Brew MP 1.0.2
See Also
IBTBIPResponder_OnEventNotify() IBTBIPResponder_GetRequestData()
Description
Retrieves the next event from the event queue. Application should call this API repeatedly until it returns AEE_ENOMORE.
When receiving event AEEBTBIPR_EV_FUNC_REQ, application should call IBTBIPResponder_GetRequestData().
Params
_me
[in]:
the object
pEvent
[out]:
destination for event data
Return
AEE_SUCCESS
[]:
event is successfully retrieved
AEE_EBADPARM
[]:
invalid input parameters
AEE_ENOMORE
[]:
no more events to retrieve
Interface
Prototype
  •    AEEResult IBTBIPResponder_GetEvent(IBTBIPResponder*            _me, 
                                          AEEBTBIPResponderEventType* pEvent);
    
Side Effect
  • None
Comments
The following list shows data fields in AEEBTBIPResponderEventType associated with each event: AEEBTBIPR_EV_ENABLED : cResult AEEBTBIPR_EV_DISABLED : cResult AEEBTBIPR_EV_CONNECTED : cResult, bdAddr AEEBTBIPR_EV_DISCONNECTED : cResult, bdAddr AEEBTBIPR_EV_CONNECT_REQ : bdAddr AEEBTBIPR_EV_FUNC_REQ : cRequest AEEBTBIPR_EV_FUNC_ENDED : cRequest, cResult AEEBTBIPR_EV_PROGRESS_REPORT : cRequest, nSize AEEBTBIPR_EV_EVENT_Q_OVERFLOW : nCount