设置设备状态变化、或者有接收到事件、告警时的回调函数。
参数:
fStatusEventCallBack:回调用函数,声明原型为:typedef LONG(CALLBACK *StatusEventCallBack)(LONG lUser,LONG nStateCode,char *pResponse,void *pUser);
其中参数意义为:
lUser:标识是哪个设备
nStateCode:事件类型,值有如下:
enum enumNetSatateEvent
{
EVENT_CONNECTING,//连接中
EVENT_CONNECTOK,//连接成功
EVENT_CONNECTFAILED,//连接失败