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

Developer

API Reference

IBTSERVICEDISCOVERY_STARTDEVICESEARCH()

Brew Release
Brew MP 1.0.2
See Also
IBTServiceDiscovery_StopDeviceSearch IBTServiceDiscovery_GetNextResponse
Description
Initiates a device search session. If successful, DEV_SEARCH_RESPONSE event will be generated for each response received from remote devices, and DEV_SEARCH_COMPLETE event will be generated when nMaxDevices have responded to the search, or nDuration seconds have passed. Application should call IBTServiceDiscovery_GetNextResponse() to retrieve the responses, one at a time. Application may wish to end the search before it completes on its own by calling IBTServiceDiscovery_StopDeviceSearch().
Params
po
[in]:
the object
CoS2Srch4
[in]:
class of device for which to search
nMaxDevices
[in]:
max number of devices for which to search
nDuration
[in]:
search duration in seconds
Prototype
  •    int IBTServiceDiscovery_StartDeviceSearch (IBTServiceDiscovery*  po,
                                                  BTClassOfService CoS2Search4,
                                                  int nMaxDevices,
                                                  int nDuration);
    
Return
  • AEE_SUCCESS : operation has been scheduled AEE_EBADPARM : input parameters are invalid AEE_EALREADY : the previous DeviceSearch operation hasn't completed AEE_EITEMBUSY : another operation already in progress
Side Effect
  • None
Comments
None