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

Developer

API Reference

IBTDEVDBCONTROL_GETNUMDEVENTRIES()

Brew Release
Brew MP 1.0.2
See Also
IBTDevDBControl_GetDeviceShortEntry() IBTDevDBControl_GetDeviceEntryRecord()
Description
Searches the Device Database and Retrives the array of BDAddresses that match the specified search criteria.
Params
_me
[in]:
The object
pSrchPattern
[in]:
Search pattern
pBDAddrArr
[out]:
Place holder for BDAddress values for the matching device entries
pBDAddrArrLen
[in]:
Length of the BDAddress array
pBDAddrArrLenReq
[out]:
Actual length required to return BDAddress of all the matching devices (Also the number of devices in the device database matching the search criteria)
Return
AEE_SUCCESS
[]:
pBDAddrArr is filled with BDAddress values of matching devices and pBDAddrArrLenReq has the total number of matching devices. If the size of input buffer is smaller than the matching device count, partial data(defined by 'pBDAddrArrLen') will be copied to pBDAddrArr. To read complete list,the app should allocate the required memory and call the API again.
AEE_EBADPARM
[]:
Invalid input parameters.
AEE_EBADSTATE
[]:
Driver error. Another appropriate error code if operation was not successful
Interface
Prototype
  •    AEEResult IBTDevDBControl_GetNumDevEntries (IBTDevDBControl* _me,
                                                   const AEEBTDevDBSrchPattern* pSrchPattern,
                                                   BDAddress* pBDAddrArr,
                                                   int pBDAddrArrLen,
                                                   int* pBDAddrArrLenReq);
    
Side Effect
  • None
Comments
None