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

Developer

API Reference

IBTDISCOVERER_STARTDEVICESEARCH()

Brew Release
Brew MP 1.0.2
See Also
Description
Initiates a device search session. If successful, AEEBTDISC_EV_DEV_SEARCH_RESPONSE event will be generated for each discovered device. AEEBTDISC_EV_DEV_SEARCH_DONE event will be generated when either nMaxDevices have responded to the search, or nDuration seconds have elapsed, whichever occurs first. Application may wish to cancel the search by calling IBTDiscoverer_CancelDeviceSearch().
Params
_me
[in]:
The object
nMaxDevices
[in]:
Max number of devices for which to search, 0, to return all devices.
nDuration
[in]:
Search duration in seconds
discoveryType
[in]:
Discovery type.
bKeepEIR
[in]:
TRUE to indicate that the application is interested in EIR data of the remote device. If the remote device responds with EIR data, this data will be made available to the application via IBTEIR member of AEEBTDevSearchResponse. FALSE to indicate, application is not interested in EIR data of the remote.
bDeviceRank
[in]:
T
AEE_SUCCESS
[]:
The operation has been scheduled.
AEE_EBADPARM
[]:
Input parameters are invalid.
AEE_EITEMBUSY
[]:
Another operation already in progress.
AEE_EBADSTATE
[]:
Driver error. Another appropriate error code if operation was not successful
Interface
Prototype
  •    AEEResult IBTDiscoverer_StartDeviceSearch(IBTDiscoverer*     _me,
                                                 int                nMaxDevices,
                                                 int                nDuration,
                                                 AEEBTDiscoveryType discoveryType,  
                                                 boolean            bKeepEIR,
                                                 boolean            bDeviceRank)
    
Side Effect
  • None.
Comments
None.