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

Developer

API Reference

IOBEXSRVSESSION_SETUIDPASSWORD()

Brew Release
Brew MP 1.0.2
See Also
Description
The application should call this function to provide information that is required for authentication.The API should be called when the events AEEOBEX_EVT_AUTH_RESPONSE and AEEOBEX_EVT_AUTH_CHALLENGE are received.
When called in response to AEEOBEX_EVT_AUTH_CHALLENGE the application should send user ID and password for which the client should grant access.
When called in response to AEEOBEX_EVT_AUTH_RESPONSE, user ID is the ID obtained from AEEOBEXAuthResp struct that accompanies the event. The password corresponds to the Uid obtained from AEEOBEXAuthResp.
Params
po
[in]:
pointer to the IOBEXSrvSession object
pUserID
[in]:
pointer to userID
nUidLen
[in]:
user id length
pPassword
[in]:
password for userID
nPswdLen
[in]:
password length
Interface
Prototype
  •    int IOBEXSrvSession_SetUidPassword(IOBEXSrvSession  *po,
                                          const uint8      *pUserID,
                                          int              nUidLen,
                                          const uint8      *pPassword
                                          int              nPswdLen );
    
Return
  • AEE_SUCCESS : the userId and password were successfully copied. AEE_ENOMEMORY : could not save parameters due to lack of memory AEE_EBADPARM : invalid paramaters
Side Effect
  • None.
Comments
None.