Closed felix-001 closed 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}) }
https://github.com/use-go/onvif/blob/master/examples/discovery_test.go#L24 check here ,if issue still ,you can Create a PR.
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}) }