Communication API > BS2_SetDeviceEventListener


BS2_SetDeviceEventListener

Registers the callback function that gets called when finding a BioStar device from the subnet or the device's network connection status changes.

Declaration

#include "BS_API.h"
 
int BS2_SetDeviceEventListener(void* context, OnDeviceFound ptrDeviceFound, OnDeviceAccepted ptrDeviceAccepted, OnDeviceConnected ptrDeviceConnected, OnDeviceDisconnected ptrDeviceDisconnected);

Parameter

Return Value

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