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

Developer

API Reference

IBTMGR1_SETWHITELIST()

Brew Release
Brew MP 1.0.2
See Also
BDAddress BTMgr1OpType IBTMgr1_SetBlackList
Description
This method adds/ removes a device from the list of devices to which connections are allowed. Connection requests from only the devices in this list, will be accepted. Driver will not initiate connection to a device that is not in this list. Existing connection to a device which is not in this list will be brought down. The whitelist takes precedence over the blacklist. If atleast one device exists in the whitelist, then the blacklist is ignored.
Params
_me
[in]:
The object
bdAddr
[in]:
Address of device
opType
[in]:
operation to be performed. Can be add/ remove/ clear all.
Return
AEE_SUCCESS
[]:
Updated list of devices to/from which connections are allowed.
AEE_EBADSTATE
[]:
Driver error. Another appropriate error code if operation was not successful.
Interface
Prototype
  •    AEEResult IBTMgr1_SetWhiteList(IBTMgr1*         _me,
                                      const BDAddress*  bdAddr,
                                      BTMgr1OpType      opType)
    
Side Effect
  • None.
Comments
None.