Skip to main content

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​

  • [In] context : Context

  • [In] second : Device searching timeout

Info

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.

Was this page helpful?