edgexfoundry / device-opc-ua

Apache License 2.0
28 stars 26 forks source link

Upgrade for compatibility with EdgeX Foundry 2.x #9

Closed jrtitus closed 2 years ago

jrtitus commented 2 years ago

Please refer to #8

jrtitus commented 2 years ago

I just noticed that the resourceMap is for the resource level. If there are several Devices and Device Profiles created and running with this Device Service, does the resourceMap still work? Or, does this Device Service only support single OPC-UA Server (single Device and Device Profile)?

It only supports a single OPC-UA server, as it did in the 1.x version.

I have not tried it with more than one, but since the OPCUAServer section of configuration.toml specifies the DeviceName, I believe even if there were multiple devices listed, only the one specified would be used.

Monitoring multiple devices could probably be an enhancement, eventually. In that case the other existing service configuration options like Policy, Mode, CertFile and KeyFile would need to be part of the device configuration, I think, because each server could have different settings.