enabled flag in opcua configuration
This commit is contained in:
@ -44,6 +44,8 @@ logger.info("MqttPublish started")
|
|||||||
|
|
||||||
opcuaThreads = []
|
opcuaThreads = []
|
||||||
for o in config['opcua']:
|
for o in config['opcua']:
|
||||||
|
if o['enabled'] != 'true':
|
||||||
|
continue
|
||||||
ot = OpcUaRequester(o, queue)
|
ot = OpcUaRequester(o, queue)
|
||||||
ot.start()
|
ot.start()
|
||||||
logger.info(f"OpcUaRequester thread for {o['name']} started")
|
logger.info(f"OpcUaRequester thread for {o['name']} started")
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
},
|
},
|
||||||
"opcua": [
|
"opcua": [
|
||||||
{
|
{
|
||||||
|
"enabled": "true",
|
||||||
"nodes": [
|
"nodes": [
|
||||||
{ "ns": 0, "n": "i=345", "d": "pv" },
|
{ "ns": 0, "n": "i=345", "d": "pv" },
|
||||||
{ "ns": 0, "n": "i=348", "d": "sv" },
|
{ "ns": 0, "n": "i=348", "d": "sv" },
|
||||||
|
Reference in New Issue
Block a user