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

Developer

API Reference

IBTMGR_SETPREFCONNROLE()

Brew Release
Brew MP 1.0.2
See Also
None
Description
By Bluetooth definition, the device initiating a connection is the master of that connection. Either device can try to switch to its preferred role, which may or may not succeed.
This method sets the preferred connection role for the local device in future connections initiated by remote devices.
If Master is the preferred role, local device will attempt a role switch. If Slave is preferred, local device will remain the slave of the connection.
Successful operation would generate AEEBTMGR_EV_SET_ROLE_SUCCESS and may cause AEEBTMGR_EV_SETTINGS_CHANGED to be generated.
Params
po
[in]:
the object
bMaster
[in]:
TRUE if local device prefers to be master in connection; FALSE if it prefers to be slave
Return
AEE_SUCCESS
[]:
operation has been scheduled
AEE_EALREADY
[]:
the previous SetPrefConnRole operation hasn't completed
AEE_EITEMBUSY
[]:
another operation is in progress
Interface
Prototype
  •    int IBTMgr_SetPrefConnRole (IBTMgr*  po,
                                   boolean  bMaster);
    
Side Effect
  • None
Comments
None