SDK API > BS2_SetDeviceSearchingTimeout
Specifies the device searching time. It defines timeout of API BS2_SearchDevices or BS2_SearchDevicesEx.
#include "BS_API.h" int BS2_SetDeviceSearchingTimeout(void* context, uint32_t second);
context
: Contextsecond
: Device searching timeout
NOTE
The default timeout is 5 sec.
If successfully done, BS_SDK_SUCCESS
will be returned.
If there is an error, the corresponding error code will be returned.