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

Developer

API Reference

IBTFTPSERVER_GETEVENT()

Brew Release
Brew MP 1.0.2
See Also
IBTFTPServer_OnEventNotify()
Description
Retrieves the next event from the event queue. Application should call this API repeatedly until it returns AEE_ENOMORE.
When receiving an OP_REQ event, application should call IBTFTPServer_GetPathName() to retrieve the file or directory name.
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 IBTFTPServer_GetEvent (IBTFTPServer* _me, 
                                        AEEBTFTPSVREventType* pEvent);
    
Side Effect
  • None
Comments
Possible event data for the events are ENABLED : cResult DISABLED : cResult CONNECTED : cResult, bdAddr DISCONNECTED : cResult, bdAddr CONNECT_REQ : bdAddr OP_REQ : opReqInfo OP_PROGRESS : cResult, nBytes OP_COMPLETE : cResult, nBytes EVENT_Q_OVERFLOW : nDroppedEvents