mobile CCTV,mobile surveillance,police body worn cameras
标题:
BVCU获取Session失败,65517错误
[打印本页]
author:
xintai1981
time:
2023-10-26 09:48
标题:
BVCU获取Session失败,65517错误
BVCU编译成功后,运行时BVCU_Initialize和BVCU_Login都成功了,但是
回调里提示
Session connect error,报-
65517错误,代码如下:
BVCU_ServerParam
serverParam
;
memset
(&
serverParam
,
0
,
sizeof
(
serverParam
));
serverParam
.
iSize
=
sizeof
(
serverParam
);
strcpy
(
serverParam
.
szServerAddr
,
"192.168.3.124"
);
//
设置要登录的服务器地址,也可以是域名
serverParam
.
iServerPort
=
9780
;
//
设置要登录的服务器的登录端口
strcpy
(
serverParam
.
szClientID
,
"CU_123456"
);
//
设置用户id
strcpy
(
serverParam
.
szUserAgent
,
"Test"
);
//
设置应用程序名称
strcpy
(
serverParam
.
szUserName
,
"admin"
);
//
设置登录用户名
strcpy
(
serverParam
.
szPassword
,
"123456"
);
//
设置登录密码
serverParam
.
iCmdProtoType
=
BVCU_PROTOTYPE_TCP
;
//
传输协议目前只支持TCP
serverParam
.
iTimeOut
=
60
*
1000
;
//
设置登录的超时时间,毫秒为单位,必须大于0
serverParam
.
OnNotify
=
OnNotifySession;
//
设置服务器的通知回调
serverParam
.
OnEvent
=
OnEventSession;
//
设置服务器的事件回调
BvResult
=
BVCU_Login(&hSession,
&
serverParam
);
author:
fanghj90
time:
2023-10-26 15:27
你好,是不是修改服务器端口了,默认 9780是http端口,9701是sip端口,BVCU是走sip端口的。
欢迎光临 mobile CCTV,mobile surveillance,police body worn cameras (http://bbs.besovideo.com:8067/)
Powered by Discuz! X3.2