1. 增加 GetDVRDeviceConfig函数
2. 增加 NET_DVR_FindNextFile_V30 函数 3. 增加 NET_DVR_FindFile_V30 函数 4. 增加 新的 Go 数据模型 5. 规范化 Go 数据模型 6. 调整部分的 C 头文件中的结构体,以修复 CGo 无法识别函数参数类型的问题(https://stackoverflow.com/questions/59353668/get-the-struct-from-c-to-golang) 7. 简化球机退出登陆 8. 实现 NVR 相关接口 9. 编写 NVR 接口测试用例
This commit is contained in:
		| @@ -299,7 +299,6 @@ func (this *BallCamera) PtzGotoPut(Action int, P, T, Z float64) error { | ||||
| 		if err != nil { | ||||
| 			return err | ||||
| 		} | ||||
| 		//println(PByte, TByte, ZByte) | ||||
| 		pBuf := append([]byte{0xff, 0x01, 0x00, 0x4b}, PByte...) | ||||
| 		tBuf := append([]byte{0xff, 0x01, 0x00, 0x4d}, TByte...) | ||||
| 		zBuf := append([]byte{0xff, 0x01, 0x00, 0x4f}, ZByte...) | ||||
| @@ -430,16 +429,6 @@ func verify(data []byte) (byte, error) { | ||||
| 	return byte(checksum), nil | ||||
| } | ||||
|  | ||||
| func (receiver *BallCamera) Logout() error { | ||||
| 	//if receiver._type == BuKongQiu { | ||||
| 	//	err := core.SerialStop(receiver.serialStartHandle) | ||||
| 	//	if err != nil { | ||||
| 	//		return err | ||||
| 	//	} | ||||
| 	//} | ||||
| 	err := Core.Logout(receiver.userId) | ||||
| 	if err != nil { | ||||
| 		return err | ||||
| 	} | ||||
| 	return nil | ||||
| func (this *BallCamera) Logout() error { | ||||
| 	return Core.Logout(this.userId) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 kunmeng
					kunmeng