1. 移除计算 3*3 矩阵的逆的函数

2. 优化球机的登陆接口
3. 新增球机的登出接口
This commit is contained in:
kunmeng
2025-02-10 15:57:03 +08:00
parent 0aad52eef1
commit 4974011eee
3 changed files with 139 additions and 116 deletions

24
HikBallCamera_test.go Normal file
View File

@@ -0,0 +1,24 @@
package HikNetSDK
import "testing"
func TestHIKBallCamera_Login(t *testing.T) {
Init()
if DvrInit() != 0 {
t.Error("Dvr init failed")
}
Camera := NewHIKBallCamera(BallCamera{
Type: "BuKongQiu",
Name: "布控球",
Ip: "192.168.211.44",
Port: "8000",
User: "admin",
Password: "okwy1234",
Channel: 1,
})
State, ErrorCode, ErrorInfo := Camera.Login()
if !State {
t.Error(ErrorCode, ErrorInfo)
return
}
}