1. NVR 和 BallCamera 添加 Status 功能

This commit is contained in:
kunmeng
2025-04-30 16:48:33 +08:00
parent a97fc849b8
commit cefba47e97
5 changed files with 17 additions and 5 deletions

View File

@@ -58,6 +58,10 @@ func Login(Ip string, Port int, Username string, Password string) (LONG, NET_DVR
return LONG(cUserId), DeviceInfo, nil
}
func NET_DVR_RemoteControl(userId LONG) bool {
return C.NET_DVR_RemoteControl(C.LONG(userId), C.DWORD(20005), nil, C.DWORD(0)) == C.TRUE
}
func Logout(userId LONG) error {
if userId > -1 {
cResult := C.NET_DVR_Logout(C.LONG(userId))