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

Developer

API Reference

IBTMGR1_SETPREFCONNROLE()

Brew Release
Brew MP 1.0.2
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.
Note that the current role of the local device may change depending on the policy set via IBTMgr1_SetRoleSwitchPolicy() and remote requests for role change.
Params
_me
[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
[]:
Preference set
AEE_EBADSTATE
[]:
Driver error. Another appropriate error code if operation was not successful.
Interface
Prototype
  •    AEEResult IBTMgr1_SetPrefConnRole(IBTMgr1* _me, boolean bMaster)
    
Side Effect
  • None.
Comments
None.