Skip to main content

BS2_SearchDevicesEx

Caution
DEPRECATED
  • This function is deprecated as of 2.9.13. Use BS2_SearchDevices together with BS2_SetEnableIPV4 / BS2_SetEnableIPV6 instead.

  • BS2_SearchDeviceByIP is not a replacement, because its argument is the address of the target device, not a host or broadcast address.

  • Search for devices in a specific IP address band and update the list of devices available in the current context. The list of devices can be obtained via the BS2_GetDevices function.

Info

Overwrite the old device list.

Declaration​

#include "BS_API.h"

int BS2_SearchDevicesEx(void* context, const char* hostipAddr);

Parameter​

  • [In] context : Context

  • [In] hostipAddr : Address of the UDP range

Return Value​

If successfully done, BS_SDK_SUCCESS will be returned.

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

See Also​

BS2_GetDevices

Was this page helpful?