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

Developer

API Reference

IBTDISCOVERER_SETDISCOVERYFILTER()

Brew Release
Brew MP 1.0.2
Description
This API allows the application to filter out dicovered devices based on Bluetooth device address and/or the class of device. Once set, the filter is valid for subsequent calls to IBTDiscoverer_StartDeviceSearch(), until the filter is cleared. Setting the mask to zero, clears the filter.
Params
_me
[in]:
the object
bdAddrValue
[in]:
BDAddress value
bdAddrMask
[in]:
address mask
CoD2Srch4Value
[in]:
class of device value
CoD2Srch4Mask
[in]:
class of device mask

Return
AEE_SUCCESS
[]:
Filter was successfully set
AEE_EBADPARM
[]:
Invalid input parameters
AEE_EBADSTATE
[]:
Driver error. Another appropriate error code if operation was not successful
Interface
Prototype
  •    AEEResult IBTDiscoverer_SetDiscoveryFilter(IBTDiscoverer*         _me,
                                                  const BDAddress*       bdAddrValue,
                                                  const BDAddress*       bdAddrMask,
                                                  const BTClassOfDevice* CoD2Srch4Value,
                                                  const BTClassOfDevice* CoD2Srch4Mask)
Side Effect
  • None.
Comments
None.