it shows the following msg:
msg : error
"Error: Unknown Inject Type undefined"
I do this for some studies and I am very new to this topics like node-red and OPC UA.
I did every step like it is specified in my study-documentation and I can't get any results.
At the End I should be able to visualize sensor dates like Temp. Humidity and Pressure from my SenseHAT on RasPi 400, but nothing occurs.
This issue is stale because it has been open 60 days with no activity. It will be closed in 15 days, but can be saved by removing the stale label or commenting.
Which node-red-contrib-iiot-opcua version are you using?
4.1.2
What happened?
I use the OPC UA IIot Node, config: [ { "id": "38321f0f.ffae4", "type": "OPCUA-IIoT-Node", "z": "80bc1e5a.fe905", "injectType": "write", "nodeId": "ns=1;s=Luftdruck", "datatype": "Double", "value": "", "name": "Luftdruck", "topic": "iiot", "showErrors": true, "x": 780, "y": 200, "wires": [ [ "5919928cecb23460" ] ] } ]
As I connect it to the Server Node, config :
[ { "id": "db5ec85d.693558", "type": "OPCUA-IIoT-Server", "z": "80bc1e5a.fe905", "port": "55388", "endpoint": "", "acceptExternalCommands": true, "maxAllowedSessionNumber": "", "maxConnectionsPerEndpoint": "", "maxAllowedSubscriptionNumber": "", "alternateHostname": "", "name": "", "showStatusActivities": true, "showErrors": true, "asoDemo": true, "allowAnonymous": true, "individualCerts": false, "isAuditing": false, "serverDiscovery": true, "users": [], "xmlsets": [], "publicCertificateFile": "", "privateCertificateFile": "", "registerServerMethod": 1, "discoveryServerEndpointUrl": "", "capabilitiesForMDNS": "", "maxNodesPerRead": 1000, "maxNodesPerBrowse": 2000, "delayToClose": 1000, "x": 850, "y": 380, "wires": [ [ "d14202a4.cc19d" ] ] } ]
it shows the following msg: msg : error "Error: Unknown Inject Type undefined"
I do this for some studies and I am very new to this topics like node-red and OPC UA. I did every step like it is specified in my study-documentation and I can't get any results. At the End I should be able to visualize sensor dates like Temp. Humidity and Pressure from my SenseHAT on RasPi 400, but nothing occurs.
Server
OPCUA-IIoT-Server Node
How can this be reproduced?
[ { "id": "80bc1e5a.fe905", "type": "tab", "label": "OPC UA Server", "disabled": false, "info": "" }, { "id": "9daf3fd6.ab695", "type": "debug", "z": "80bc1e5a.fe905", "name": "", "active": false, "tosidebar": true, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "statusVal": "payload", "statusType": "auto", "x": 1330, "y": 180, "wires": [] }, { "id": "c1f7e297.0202", "type": "OPCUA-IIoT-Inject", "z": "80bc1e5a.fe905", "injectType": "inject", "payload": "", "payloadType": "date", "topic": "", "repeat": "", "crontab": "", "once": false, "startDelay": "0", "name": "", "addressSpaceItems": [], "x": 130, "y": 380, "wires": [ [ "ca929465.07b168", "d830a481.c4b468", "3a65124b.7cfabe", "b0874409.01a328" ] ] }, { "id": "db5ec85d.693558", "type": "OPCUA-IIoT-Server", "z": "80bc1e5a.fe905", "port": "55388", "endpoint": "", "acceptExternalCommands": true, "maxAllowedSessionNumber": "", "maxConnectionsPerEndpoint": "", "maxAllowedSubscriptionNumber": "", "alternateHostname": "", "name": "", "showStatusActivities": true, "showErrors": true, "asoDemo": true, "allowAnonymous": true, "individualCerts": false, "isAuditing": false, "serverDiscovery": true, "users": [], "xmlsets": [], "publicCertificateFile": "", "privateCertificateFile": "", "registerServerMethod": 1, "discoveryServerEndpointUrl": "", "capabilitiesForMDNS": "", "maxNodesPerRead": 1000, "maxNodesPerBrowse": 2000, "delayToClose": 1000, "x": 850, "y": 380, "wires": [ [ "d14202a4.cc19d" ] ] }, { "id": "41cd7bee.6b0a04", "type": "rpi-sensehat in", "z": "80bc1e5a.fe905", "name": "", "motion": false, "env": true, "stick": false, "x": 80, "y": 140, "wires": [ [ "353684c9.7a90dc" ] ] }, { "id": "10ac3428.1e76ac", "type": "switch", "z": "80bc1e5a.fe905", "name": "", "property": "topic", "propertyType": "msg", "rules": [ { "t": "cont", "v": "temperature", "vt": "str" }, { "t": "cont", "v": "humidity", "vt": "str" }, { "t": "cont", "v": "pressure", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 3, "x": 370, "y": 140, "wires": [ [ "ee3b0b97.551868", "4d6c02b1.c2c0bc" ], [ "4661713b.92c64", "cfa3229b.5e16e" ], [ "e19b9e93.a1c46", "38321f0f.ffae4", "81f6e7d9292c6f73" ] ] }, { "id": "353684c9.7a90dc", "type": "split", "z": "80bc1e5a.fe905", "name": "", "splt": "\n", "spltType": "str", "arraySplt": "1", "arraySpltType": "len", "stream": false, "addname": "topic", "x": 240, "y": 140, "wires": [ [ "10ac3428.1e76ac" ] ] }, { "id": "ee3b0b97.551868", "type": "debug", "z": "80bc1e5a.fe905", "name": "Temperatur", "active": false, "tosidebar": false, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "x": 590, "y": 60, "wires": [] }, { "id": "4661713b.92c64", "type": "debug", "z": "80bc1e5a.fe905", "name": "Luftfeuchtigkeit ", "active": false, "tosidebar": false, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "x": 600, "y": 140, "wires": [] }, { "id": "e19b9e93.a1c46", "type": "debug", "z": "80bc1e5a.fe905", "name": "Luftdruck", "active": false, "tosidebar": false, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "statusVal": "payload", "statusType": "auto", "x": 580, "y": 220, "wires": [] }, { "id": "19cf377d.5146e9", "type": "function", "z": "80bc1e5a.fe905", "name": "OPC UA Nodes", "func": "return msg;", "outputs": 1, "timeout": "", "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 580, "y": 380, "wires": [ [ "db5ec85d.693558", "8149b2ff08480eee" ] ] }, { "id": "4d6c02b1.c2c0bc", "type": "OPCUA-IIoT-Node", "z": "80bc1e5a.fe905", "injectType": "write", "nodeId": "ns=1;s=Temperatur", "datatype": "String", "value": "", "name": "Temperatur", "topic": "", "showErrors": true, "x": 790, "y": 80, "wires": [ [] ] }, { "id": "cfa3229b.5e16e", "type": "OPCUA-IIoT-Node", "z": "80bc1e5a.fe905", "injectType": "write", "nodeId": "ns=1;s=Luftfeuchtigkeit", "datatype": "String", "value": "", "name": "Luftfeuchtigkeit", "topic": "iiot", "showErrors": true, "x": 800, "y": 140, "wires": [ [] ] }, { "id": "38321f0f.ffae4", "type": "OPCUA-IIoT-Node", "z": "80bc1e5a.fe905", "injectType": "write", "nodeId": "ns=1;s=Luftdruck", "datatype": "Double", "value": "", "name": "Luftdruck", "topic": "iiot", "showErrors": true, "x": 840, "y": 260, "wires": [ [ "5919928cecb23460" ] ] }, { "id": "ca929465.07b168", "type": "OPCUA-IIoT-Server-ASO", "z": "80bc1e5a.fe905", "nodeId": "ns=1;s=SenseHAT", "browsename": "SenseHAT", "displayname": "Sense HAT", "objecttype": "FolderType", "datatype": "", "value": "", "referenceNodeId": "ns=0;i=85", "referencetype": "HasComponent", "name": "Sense-HAT-Folder", "x": 370, "y": 460, "wires": [ [ "19cf377d.5146e9" ] ] }, { "id": "3a65124b.7cfabe", "type": "OPCUA-IIoT-Server-ASO", "z": "80bc1e5a.fe905", "nodeId": "ns=1;s=Temperatur", "browsename": "Temperatur", "displayname": "Temperatur", "objecttype": "BaseDataVariableType", "datatype": "Double", "value": "", "referenceNodeId": "ns=1;s=SenseHAT", "referencetype": "HasComponent", "name": "Temperatur", "x": 350, "y": 340, "wires": [ [ "19cf377d.5146e9" ] ] }, { "id": "d830a481.c4b468", "type": "OPCUA-IIoT-Server-ASO", "z": "80bc1e5a.fe905", "nodeId": "ns=1;s=Luftfeuchtigkeit", "browsename": "Luftfeuchtigkeit", "displayname": "Luftfeuchtigkeit", "objecttype": "BaseDataVariableType", "datatype": "Double", "value": "", "referenceNodeId": "ns=1;s=SenseHAT", "referencetype": "HasComponent", "name": "Luftfeuchtigkeit", "x": 360, "y": 380, "wires": [ [ "19cf377d.5146e9" ] ] }, { "id": "b0874409.01a328", "type": "OPCUA-IIoT-Server-ASO", "z": "80bc1e5a.fe905", "nodeId": "ns=1;s=Luftdruck", "browsename": "Luftdruck", "displayname": "Luftdruck", "objecttype": "BaseDataVariableType", "datatype": "Double", "value": "", "referenceNodeId": "ns=1;s=SenseHAT", "referencetype": "HasComponent", "name": "Luftdruck", "x": 340, "y": 420, "wires": [ [ "19cf377d.5146e9" ] ] }, { "id": "d14202a4.cc19d", "type": "debug", "z": "80bc1e5a.fe905", "name": "TEST Demo Server", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 1090, "y": 380, "wires": [] }, { "id": "81f6e7d9292c6f73", "type": "debug", "z": "80bc1e5a.fe905", "name": "Split outcome", "active": false, "tosidebar": true, "console": false, "tostatus": true, "complete": "topic", "targetType": "msg", "statusVal": "topic", "statusType": "auto", "x": 580, "y": 280, "wires": [] }, { "id": "5919928cecb23460", "type": "delay", "z": "80bc1e5a.fe905", "name": "", "pauseType": "rate", "timeout": "70", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "20", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": true, "allowrate": false, "outputs": 1, "x": 1090, "y": 240, "wires": [ [ "9daf3fd6.ab695", "b1e31d4473acc45c" ] ] }, { "id": "b1e31d4473acc45c", "type": "debug", "z": "80bc1e5a.fe905", "name": "Iiot Node", "active": false, "tosidebar": true, "console": false, "tostatus": true, "complete": "topic", "targetType": "msg", "statusVal": "topic", "statusType": "auto", "x": 1340, "y": 260, "wires": [] }, { "id": "8149b2ff08480eee", "type": "debug", "z": "80bc1e5a.fe905", "name": "Namensraum test", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 830, "y": 500, "wires": [] }, { "id": "0d56ad92dcb1b192", "type": "OPCUA-IIoT-Write", "z": "80bc1e5a.fe905", "connector": "d518c6d06ce5e361", "name": "", "justValue": true, "showStatusActivities": false, "showErrors": false, "x": 1050, "y": 80, "wires": [ [] ] }, { "id": "d518c6d06ce5e361", "type": "OPCUA-IIoT-Connector", "discoveryUrl": "", "endpoint": "opc.tcp://192.168.178.29:55388/", "endpointMustExist": false, "keepSessionAlive": true, "loginEnabled": false, "name": "TESTESTEST", "showErrors": false, "securityPolicy": "None", "securityMode": "None", "individualCerts": false, "publicCertificateFile": "", "privateKeyFile": "", "defaultSecureTokenLifetime": "", "autoSelectRightEndpoint": false, "strategyMaxRetry": "", "strategyInitialDelay": "", "strategyMaxDelay": "", "strategyRandomisationFactor": "", "requestedSessionTimeout": "", "connectionStartDelay": "", "reconnectDelay": "", "maxBadSessionRequests": "10" } ]
What did you expect to happen?
Writing Sensor dates in the server room
Other Information
No response