enabled flag in opcua configuration

This commit is contained in:
Wolfgang Hottgenroth
2022-02-04 22:30:48 +01:00
parent 8a32e05673
commit 91039460fd
2 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,8 @@ logger.info("MqttPublish started")
opcuaThreads = []
for o in config['opcua']:
if o['enabled'] != 'true':
continue
ot = OpcUaRequester(o, queue)
ot.start()
logger.info(f"OpcUaRequester thread for {o['name']} started")

View File

@ -6,6 +6,7 @@
},
"opcua": [
{
"enabled": "true",
"nodes": [
{ "ns": 0, "n": "i=345", "d": "pv" },
{ "ns": 0, "n": "i=348", "d": "sv" },