use-go / onvif

full and enhanced onvif protocol stack in golang.
MIT License
384 stars 180 forks source link

why Authenticate function has been deleted? #26

Closed felix-001 closed 1 year ago

felix-001 commented 1 year ago

why Authenticate function has been deleted?

if GetAvailableDevicesAtSpecificEthernetInterface return devices, if the device need user/passwd, i can't use that device

i must need to use the device probed to newDevice

devices, err := goonvif.GetAvailableDevicesAtSpecificEthernetInterface("en7") if err != nil { log.Println(err) return nil }

for _, dev := range devices { newDev := onvif.NewDevice(onvif.DeviceParams{Xaddr: dev.params.Xaddr, Username: "username", Password: password}) }

crazybber commented 1 year ago

https://github.com/use-go/onvif/blob/master/examples/discovery_test.go#L24 check here ,if issue still ,you can Create a PR.