feat: 适配livegbs接口

This commit is contained in:
ydajiang
2025-08-28 10:12:09 +08:00
parent ba44137f33
commit beb50d0d73
17 changed files with 842 additions and 487 deletions

View File

@@ -30,7 +30,7 @@ func TestDecodeXML(t *testing.T) {
if err != nil {
panic(err)
}
handler := EventHandler{}
//handler := EventHandler{}
for i := 0; i < len(file); {
size := binary.BigEndian.Uint32(file[i:])
i += 4
@@ -42,7 +42,8 @@ func TestDecodeXML(t *testing.T) {
panic(err)
}
handler.OnCatalog(catalogResponse.DeviceID, catalogResponse)
println(string(body))
//handler.OnCatalog(catalogResponse.DeviceID, catalogResponse)
}
})