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

Developer

API Reference

IOBEXSRV_REGISTER()

Brew Release
Brew MP 1.0.2
See Also
AEEOBEXTransport IOBEXSrv_Deregister()
Description
This method registers an OBEX server over a particular transport. Transport parameters are sent to the implementation as a null terminated string containing name-value pairs separated by a delimiter ';'.The format of the string is "=;=". For E.g if the transport is Bluetooth RFCOMM ,the transport parameters could be the service name and security(AEEBT_SEC_AUTHENTICATE). The transport string would be "service_name=ftp server;security=1". For a list of name-value pairs see AEEOBEXTransport.
Params
p
[in]:
pointer to the IOBEXSrv object
transType
[in]:
transport type
pszTarget
[in]:
buffer containing target Id
nLen
[in]:
target Id length
pszTransport
[in]:
null terminated string containing transport parameters
Interface
Prototype
  •    IOBEXSrv_Register( IOBEXSrv             *p,
                          AEEOBEXTransport     transType,
                          uint8                *pTarget,
                          int                  nTargetLen,
                          const char           *pszTransport)
    
Return
  • AEE_SUCCESS : the request to register the server was initiated, wait for AEEOBEX_EVT_SRV_REG_CMPL to be sent to the application AEE_ENOMEMORY : no memory AEE_EBADPARM : bad parameters or unsupported transport
Side Effect
  • None.
Comments
AEEOBEX_EVT_SRV_REG_CMPL is sent to the application when registration is complete.