SDK API > BS2_SetDeviceSearchingTimeout


BS2_SetDeviceSearchingTimeout

Specifies the device searching time. It defines timeout of API BS2_SearchDevices or BS2_SearchDevicesEx.

Declaration

#include "BS_API.h"
 
int BS2_SetDeviceSearchingTimeout(void* context, uint32_t second);

Parameter

NOTE
The default timeout is 5 sec.

Return Value

If successfully done, BS_SDK_SUCCESS will be returned.
If there is an error, the corresponding error code will be returned.