Communication API > BS2_SetNotificationListener
Sets the notification listener.
#include "BS_API.h" int BS2_SetNotificationListener(void* context, OnAlarmFired ptrAlarmFired, OnInputDetected ptrInputDetected, OnConfigChanged ptrConfigChanged);
context
: ContextptrAlarmFired
: Callback function that is called when the alarm configured to a zone triggersptrInputDetected
: Callback function that is called when an input signal is detectedptrConfigChanged
: Callback function that is called when the configuration of the device is modified
If successfully done, BS_SDK_SUCCESS
will be returned.
If there is an error, the corresponding error code will be returned.