node-red-contrib-iiot-opcua - Server Method Caller

Example:

  • Server
  • Method Caller
  • Response
[
    {
        "id": "11eedb1e.d0a385",
        "type": "tab",
        "label": "IoT/IIoT OPC UA",
        "disabled": false,
        "info": ""
    },
    {
        "id": "1092c3e1.503acc",
        "type": "OPCUA-IIoT-Server",
        "z": "11eedb1e.d0a385",
        "port": "55388",
        "endpoint": "",
        "acceptExternalCommands": true,
        "maxAllowedSessionNumber": "",
        "maxConnectionsPerEndpoint": "",
        "maxAllowedSubscriptionNumber": "",
        "alternateHostname": "",
        "name": "",
        "showStatusActivities": false,
        "showErrors": false,
        "allowAnonymous": true,
        "isAuditing": false,
        "users": [],
        "x": 220,
        "y": 140,
        "wires": [
            [],
            []
        ]
    },
    {
        "id": "c9f0ebd2.072648",
        "type": "debug",
        "z": "11eedb1e.d0a385",
        "name": "",
        "active": true,
        "console": "false",
        "complete": "false",
        "x": 670,
        "y": 180,
        "wires": []
    },
    {
        "id": "97ec1d62.290c6",
        "type": "debug",
        "z": "11eedb1e.d0a385",
        "name": "",
        "active": true,
        "console": "false",
        "complete": "true",
        "x": 650,
        "y": 220,
        "wires": []
    },
    {
        "id": "ef7009d5.b35588",
        "type": "inject",
        "z": "11eedb1e.d0a385",
        "name": "Call Bark Method",
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "repeat": "",
        "crontab": "",
        "once": false,
        "x": 220,
        "y": 220,
        "wires": [
            [
                "fe96b92c.24a498"
            ]
        ]
    },
    {
        "id": "fe96b92c.24a498",
        "type": "OPCUA-IIoT-Method-Caller",
        "z": "11eedb1e.d0a385",
        "connector": "a7993a61.3630c8",
        "objectId": "ns=4;i=1234",
        "methodId": "ns=4;i=12345",
        "methodtype": "basic",
        "value": "",
        "name": "",
        "inputArguments": [
            {
                "name": "barks",
                "dataType": "UInt32",
                "value": "3"
            },
            {
                "name": "volume",
                "dataType": "UInt32",
                "value": "6"
            }
        ],
        "x": 420,
        "y": 220,
        "wires": [
            [
                "c9f0ebd2.072648",
                "97ec1d62.290c6",
                "f3c12e3e.2ad4f"
            ]
        ]
    },
    {
        "id": "f3c12e3e.2ad4f",
        "type": "OPCUA-IIoT-Response",
        "z": "11eedb1e.d0a385",
        "name": "",
        "showStatusActivities": false,
        "showErrors": false,
        "x": 660,
        "y": 260,
        "wires": [
            []
        ]
    },
    {
        "id": "a7993a61.3630c8",
        "type": "OPCUA-IIoT-Connector",
        "z": "",
        "endpoint": "opc.tcp://localhost:55388/UA/NodeREDIIOTServer",
        "keepSessionAlive": true,
        "loginEnabled": false,
        "securityPolicy": "None",
        "securityMode": "NONE",
        "name": "Method Server",
        "showStatusActivities": false,
        "showErrors": false
    }
]
biancode

Flow Info

created 1 month ago

Node Types

Core
  • debug (x2)
  • inject (x1)
Other
  • OPCUA-IIoT-Connector (x1)
  • OPCUA-IIoT-Method-Caller (x1)
  • OPCUA-IIoT-Response (x1)
  • OPCUA-IIoT-Server (x1)
  • tab (x1)

Tags

  • opcua
  • opc
  • ua
  • information
  • model
  • rami4.0
  • iot
  • iiot
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option