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

Developer

API Reference

IOBEXCLI_AUTHENTICATE()

Brew Release
Brew MP 1.0.2
See Also
IOBEXCli_SetUidPassword() IOBEXCli_Connect() AEEOBEXCharSet
Description
A client can call this method to indicate to the OBEX implementation that it should authenticate the server.Calling this function would cause the challenge header to be sent with the next OBEX command. For example, if the server has to be authenticated during connection,the application should call IOBEXCli_Authenticate() before calling IOBEXCli_Connect() to initiate authentication during connection.
Params
po
[in]:
pointer to the IOBEXCli object
charSet
[in]:
character set in which the realm string is encoded
pRealm
[in]:
pointer to realm information.
nRealmLen
[in]:
realm len
bUidReqd
[in]:
indicates if user id is required TRUE if the client requires UserID from the server FALSE,if the client does not require User Id from the server.
bFullAccess
[in]:
type of Access TRUE for full access FALSE for read only access
Interface
Prototype
  •   int IOBEXCli_Authenticate(IOBEXCli           *po,
                                AEEOBEXCharSet     charSet,
                                uint8              *pRealm,
                                int                nRealmLen,
                                boolean            bUidReqd,
                                boolean            bFullAccess);
    
Return
  • AEE_SUCCESS : the information was set successfully AEE_ENOMEMORY : no resources to store the information. AEE_EUNSUPPORTED : not supported
Side Effect
  • None.
Comments
AEEOBEX_EVT_AUTH_COMPL is sent when the authentication is complete.