Skip to content

Commit 7a070f4

Browse files
committed
change readme
1 parent a55219c commit 7a070f4

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,36 @@
11
# onvif4go
22

3+
```
34
device := onvif4go.NewOnvifDevice("192.168.1.1:80")
45
device.Auth("admin", "1234456")
56
err := device.Initialize()
67
...
8+
```
79

10+
```
811
deviceInformation, err := device.Device.GetDeviceInformation()
912
...
13+
```
1014

15+
```
1116
err := device.Media.AddVideoAnalyticsConfiguration("Profile_0", "VideoAnalyticsConfiguration_000")
1217
...
18+
```
1319

20+
```
1421
response := CustomDeviceResponse{}
1522
err := device.Device.Call(CustomDeviceRequest{}, &response)
1623
...
24+
```
1725

26+
```
1827
response := trt.GetProfilesResponse{}
1928
media, ok := device.On("media")
2029
err := media.Call(trt.GetProfiles{}, &response)
2130
...
31+
```
2232

33+
```
2334
response := onvif4go.XmlNode{}
2435
analytics, _ := device.On("analytics")
2536
err = analytics.Call(onvif4go.XmlNode{
@@ -30,4 +41,5 @@ err = analytics.Call(onvif4go.XmlNode{
3041
Text: "VideoAnalyticsConfiguration_000",
3142
},
3243
},
33-
}, &response)
44+
}, &response)
45+
```

0 commit comments

Comments
 (0)