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

Developer

API Reference

IBTPROPERTIES_RETRIEVEWHITELIST()

Brew Release
Brew MP 1.0.2
See Also
Description
Retrieves the list of allowed devices. The local Bluetooth device will accept connections only from these devices and initiate connections only to these devices. An existing connection to a device that is not in this list, will be brought down.
Params
_me
[in]:
The object
bdAddrList
[out]:
List of BD address structs that the app sends to the implementation to retrieve the whitelist.
bdAddrListLen
[in]:
Number of elements in bdAddrList
bdAddrListLenReq
[out]:
Number of elements in bdAddrList that are required to retrieve the entire list of prefered devices.
Return
AEE_SUCCESS
[]:
Whitelist returned. If bdAddrListLen is lesser than the actual number of prefered devices, partial list will be returned to the app. To retrieve the entire list, the app should allocate the required buffer size and call this API again.
AEE_EBADSTATE
[]:
Information not available to be read due to driver error.
Interface
Prototype
  •    AEEResult IBTProperties_RetrieveWhiteList(IBTProperties* _me,
                                                 BDAddress*     bdAddrList,
                                                 int            bdAddrListLen,
                                                 int*           bdAddrListLenReq);
    
Side Effect
  • None.
Comments
None.