edgexfoundry / device-onvif-camera

Owner: Device WG
Apache License 2.0
29 stars 37 forks source link

netscan discovery was called, but DiscoverySubnets are empty! #96

Closed wangyongxiao closed 2 years ago

wangyongxiao commented 2 years ago

πŸ“š Docs or Wiki Bug Report

Description [REQUIRED]

According to the steps of [auto-discovery-docker.md](https://github.com/edgexfoundry/device-onvif-camera/blob/main/doc/auto-discovery-docker.md) i get an msg below: `level=WARN ts=2022-07-01T07:46:12.894347595Z app=device-onvif-camera source=driver.go:580 msg="netscan discovery was called, but DiscoverySubnets are empty!"` and i found the DiscoverySubnets is empty in configration.toml which is in device-onvif-camera container and i can not change it because it's read_only what can i do now?
weichou1229 commented 2 years ago

You should override the settings by env, will update the doc via this PR https://github.com/edgexfoundry/device-onvif-camera/pull/95 APPCUSTOM_DISCOVERYSUBNETS: "192.168.1.0/24,10.0.0.0/24"

wangyongxiao commented 2 years ago

it work

wangyongxiao commented 2 years ago

@weichou1229 can you tell me where to find APPCUSTOM_DISCOVERYSUBNETS doc? i can't find it anywhere i konw

weichou1229 commented 2 years ago

See https://github.com/edgexfoundry/device-onvif-camera/blob/main/cmd/res/configuration.toml#L120 or https://github.com/edgexfoundry/device-onvif-camera/blob/main/doc/auto-discovery.md#usage