Skip to content

Instantly share code, notes, and snippets.

@biancode
Created October 6, 2017 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biancode/dd1e5e32e802ac2532a9d6dabbc0e10e to your computer and use it in GitHub Desktop.
Save biancode/dd1e5e32e802ac2532a9d6dabbc0e10e to your computer and use it in GitHub Desktop.
node-red-contrib-iiot-opcua - Events

v1.0.x Example:

  • Events
  • Listener
[
{
"id": "cba43db7.197ff",
"type": "tab",
"label": "IIoT OPC UA Events",
"disabled": false,
"info": ""
},
{
"id": "5fee50d3.b244f",
"type": "OPCUA-IIoT-Listener",
"z": "cba43db7.197ff",
"connector": "823d2dee.6d0b6",
"action": "events",
"queueSize": "1000",
"name": "",
"justValue": false,
"multipleRequest": false,
"metaDataInject": false,
"showStatusActivities": false,
"showErrors": false,
"x": 590,
"y": 120,
"wires": [
[
"8d2750f4.adef6"
],
[
"ee5afa8e.501e98"
]
]
},
{
"id": "8d2750f4.adef6",
"type": "debug",
"z": "cba43db7.197ff",
"name": "",
"active": true,
"console": "false",
"complete": "true",
"x": 740,
"y": 100,
"wires": []
},
{
"id": "ee5afa8e.501e98",
"type": "debug",
"z": "cba43db7.197ff",
"name": "",
"active": true,
"console": "false",
"complete": "true",
"x": 740,
"y": 140,
"wires": []
},
{
"id": "2c145c92.e7fb84",
"type": "OPCUA-IIoT-Event",
"z": "cba43db7.197ff",
"eventType": "BaseEventType",
"eventTypeLabel": "BaseEventType (i=2041)",
"queueSize": "1000",
"usingListener": true,
"name": "Base Events",
"x": 420,
"y": 120,
"wires": [
[
"5fee50d3.b244f"
]
]
},
{
"id": "ce52e27f.ec2b9",
"type": "OPCUA-IIoT-Inject",
"z": "cba43db7.197ff",
"injectType": "listen",
"payload": "200",
"payloadType": "num",
"topic": "",
"repeat": "",
"crontab": "",
"once": true,
"startDelay": "",
"name": "listen with 200 ms",
"addressSpaceItems": [
{
"name": "Tanks",
"nodeId": "ns=1;i=1000",
"datatypeName": ""
},
{
"name": "Server",
"nodeId": "ns=0;i=2253",
"datatypeName": ""
}
],
"x": 230,
"y": 120,
"wires": [
[
"2c145c92.e7fb84"
]
]
},
{
"id": "823d2dee.6d0b6",
"type": "OPCUA-IIoT-Connector",
"z": "",
"endpoint": "opc.tcp://localhost:55388/",
"keepSessionAlive": true,
"loginEnabled": false,
"securityPolicy": "None",
"securityMode": "NONE",
"name": "LOCAL SERVER",
"showStatusActivities": false,
"showErrors": false
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment