Ok,
So, here you have got the debug of what is outputed by function and sent to "PC UA Server" node (Windows console) :
6 Nov 12:43:22 - [info] [debug:Function node debug]
{
payload: { opcuaCommand: 'setFolder' },
topic: 'i=85',
_msgid: 'b3c3228071568694'
}
11:43:23.552Z :address_space :1260 modelChangeTransaction
6 Nov 12:43:23 - [error] [OpcUa-Server:OPC UA Server node] Error
6 Nov 12:43:23 - [info] [debug:Function node debug]
{
payload: { opcuaCommand: 'addFolder', browseName: 'dataFolder' },
topic: 'ns=1;s=data',
_msgid: 'b3c3228071568694'
}
6 Nov 12:43:24 - [warn] [OpcUa-Server:OPC UA Server node] OPC UA Server node: Folder not found for topic: ns=1;s=data
6 Nov 12:43:24 - [info] [debug:Function node debug]
{
payload: { opcuaCommand: 'setFolder' },
topic: 'ns=1;s=data',
_msgid: 'b3c3228071568694'
}
Here is the "OPC UA Server" node :
[{"id":"fc8adc2b38b69fb0","type":"OpcUa-Server","z":"24dfd0b8da371607","g":"ea8f423ab0151f6d","port":"4840","name":"OPC UA Server","endpoint":"","users":"users.json","nodesetDir":"","autoAcceptUnknownCertificate":true,"registerToDiscovery":false,"constructDefaultAddressSpace":true,"allowAnonymous":true,"endpointNone":true,"endpointSign":true,"endpointSignEncrypt":true,"endpointBasic128Rsa15":true,"endpointBasic256":true,"endpointBasic256Sha256":true,"maxNodesPerBrowse":0,"maxNodesPerHistoryReadData":0,"maxNodesPerHistoryReadEvents":0,"maxNodesPerHistoryUpdateData":0,"maxNodesPerRead":0,"maxNodesPerWrite":0,"maxNodesPerMethodCall":0,"maxNodesPerRegisterNodes":0,"maxNodesPerNodeManagement":0,"maxMonitoredItemsPerCall":0,"maxNodesPerHistoryUpdateEvents":0,"maxNodesPerTranslateBrowsePathsToNodeIds":0,"maxConnectionsPerEndpoint":20,"maxMessageSize":4096,"maxBufferSize":4096,"maxSessions":20,"x":930,"y":380,"wires":[["80c33821e8c65b4e"]]}]
Full console on start :
6 Nov 12:48:35 - [info]
Bienvenue sur Node-RED
===================
6 Nov 12:48:35 - [info] Node-RED version: v3.1.14
6 Nov 12:48:35 - [info] Node.js version: v22.11.0
6 Nov 12:48:35 - [info] Windows_NT 10.0.22631 x64 LE
(node:14052) [DEP0059] DeprecationWarning: The `util.log API is deprecated. Please use console.log() with a custom formatter or a third-party logger instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
6 Nov 12:48:35 - [info] Chargement des noeuds de la palette
+-------------------------------------------------------------------------------------+
| Warning: |
| node-opcua-client-crawler module has been deprecated and is not maintained anymore. |
| Please use '@sterfive/crawler' instead. |
| '@sterfive/crawler' is available to the NodeOPCUA Subscription members |
+-------------------------------------------------------------------------------------+
(node:14052) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
6 Nov 12:48:37 - [info] Fichier de paramètres : C:\METIER\fesp\settings.js
6 Nov 12:48:37 - [info] Stockage contextuel : 'default' [module=memory]
6 Nov 12:48:37 - [info] RĂ©pertoire utilisateur : C:\METIER\fesp
6 Nov 12:48:37 - [warn] Projets désactivés : editorTheme.projects.enabled=false
6 Nov 12:48:37 - [info] Fichier des flux : C:\METIER\fesp\flows.json
6 Nov 12:48:37 - [info] Le serveur est disponible Ă l'adresse http://127.0.0.1:80/admin/
6 Nov 12:48:37 - [info] DĂ©marrage des flux
6 Nov 12:48:37 - [info] [socketio-config:47235b74.69f984] CORS Enabled false
6 Nov 12:48:37 - [info] [socketio-config:47235b74.69f984] CORS METHODS [""]
6 Nov 12:48:37 - [info] [socketio-config:47235b74.69f984] CORS ORIGINS "*"
6 Nov 12:48:37 - [info] [socketio-config:47235b74.69f984] Created server bind to Node-RED port
6 Nov 12:48:37 - [info] Flux démarrés
6 Nov 12:48:37 - [info] [aedes broker:d9dc2063ac24bccb] Binding aedes mqtt server on port: 1883
(node:14052) [DEP0044] DeprecationWarning: The `util.isArray` API is deprecated. Please use `Array.isArray()` instead.
6 Nov 12:48:37 - [info] [mqtt-broker:d0036dd2faf5432e] Connecté au courtier : FESP@mqtt://localhost:1883
6 Nov 12:48:38 - [warn] [function:Préparation structure des registres] Arch_CSV_Canal1
6 Nov 12:48:38 - [warn] [function:Préparation structure des registres] Info_PLC
6 Nov 12:48:38 - [warn] [function:Horodatage] mise Ă jour horloge automate : 6.11.2024 12:48:40
6 Nov 12:48:38 - [warn] [function:Préparation structure des registres] Arch_CSV_Canal1
6 Nov 12:48:38 - [warn] [function:Préparation structure des registres] Info_PLC
6 Nov 12:48:39 - [warn] [function:function 44] [object Object]
6 Nov 12:48:39 - [warn] [function:function 44] [object Object]
6 Nov 12:48:39 - [error] [function:Variables CSS] TypeError: Cannot read properties of undefined (reading 'fullscreen')
6 Nov 12:48:39 - [warn] [function:function 44] [object Object]
6 Nov 12:48:39 - [error] [http response:Envoi HTML] Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
6 Nov 12:48:39 - [info] [debug:OPC UA node debug]
{
topic: 'Client-connected',
payload: 'UaBrowser@NB-CBA - Session 1',
_msgid: 'f45b28975792396c'
}
6 Nov 12:48:39 - [info] [debug:OPC UA node debug]
{
topic: 'Username',
payload: 'UaBrowser@NB-CBA - Session 1',
_msgid: '9b318465a01be969'
}
6 Nov 12:48:39 - [warn] [function:function 44] [object Object]
6 Nov 12:48:39 - [warn] [function:Variables et fonctions globales] sanitizeText Ok
6 Nov 12:48:39 - [warn] [function:Variables et fonctions globales] [object Object]
6 Nov 12:48:39 - [warn] [function:Variables et fonctions globales] settings Ok
Access level string: CurrentRead | HistoryRead |
Access level: 1 user access level: 1 restrictions: 0
Role: 15668 selection was b
Permission string: Browse | Read | ReadRolePermissions | ReadHistory | ReceiveEvents |
Permission flag: 163
Permissions: [{"roleId":15668,"permissions":163}]
Access level string: CurrentRead | CurrentWrite | StatusWrite | HistoryRead | HistoryWrite | SemanticChange
Access level: 63 user access level: 63 restrictions: 0
Role: 15680 selection was o
Permission string: Browse | Read | Write | WriteAttribute | ReadRolePermissions | WriteRolePermissions | ReadHistory | WriteHistorizing | InsertHistory | ReceiveEvents | Call |
Permission flag: 2559
Concatenated permissions: [{"roleId":15668,"permissions":163},{"roleId":15680,"permissions":2559}]
Permissions: [{"roleId":15668,"permissions":163},{"roleId":15680,"permissions":2559}]
Access level string: CurrentRead | CurrentWrite | StatusWrite | HistoryRead | HistoryWrite | SemanticChange
Access level: 63 user access level: 63 restrictions: 0
Role: 16036 selection was e
Permission string: Browse | Read | Write | WriteAttribute | ReadRolePermissions | WriteRolePermissions | ReadHistory | WriteHistorizing | InsertHistory | ReceiveEvents | Call |
Permission flag: 2559
Concatenated permissions: [{"roleId":15668,"permissions":163},{"roleId":15680,"permissions":2559},{"roleId":16036,"permissions":2559}]
Permissions: [{"roleId":15668,"permissions":163},{"roleId":15680,"permissions":2559},{"roleId":16036,"permissions":2559}]
11:48:54.088Z :address_space :1260 modelChangeTransaction
6 Nov 12:48:54 - [error] [OpcUa-Server:OPC UA Server] Error
6 Nov 12:48:54 - [info] [debug:Function node debug]
{
payload: { opcuaCommand: 'addFolder' },
topic: 'ns=1;s=data',
_msgid: '38fd4af5a64dcea3',
_event: 'node:fdd117c2b041fa15',
accessLevel: 63,
userAccessLevel: 63,
accessRestrictions: 0,
permissions: [
{ roleId: 15668, permissions: 163 },
{ roleId: 15680, permissions: 2559 },
{ roleId: 16036, permissions: 2559 }
]
}
Access level string: CurrentRead | HistoryRead |
Access level: 1 user access level: 1 restrictions: 0
Role: 15668 selection was b
Permission string: Browse | Read | ReadRolePermissions | ReadHistory | ReceiveEvents |
Permission flag: 163
Permissions: [{"roleId":15668,"permissions":163}]
Access level string: CurrentRead | CurrentWrite | StatusWrite | HistoryRead | HistoryWrite | SemanticChange
Access level: 63 user access level: 63 restrictions: 0
Role: 15680 selection was o
Permission string: Browse | Read | Write | WriteAttribute | ReadRolePermissions | WriteRolePermissions | ReadHistory | WriteHistorizing | InsertHistory | ReceiveEvents | Call |
Permission flag: 2559
Concatenated permissions: [{"roleId":15668,"permissions":163},{"roleId":15680,"permissions":2559}]
Permissions: [{"roleId":15668,"permissions":163},{"roleId":15680,"permissions":2559}]
Access level string: CurrentRead | CurrentWrite | StatusWrite | HistoryRead | HistoryWrite | SemanticChange
Access level: 63 user access level: 63 restrictions: 0
Role: 16036 selection was e
Permission string: Browse | Read | Write | WriteAttribute | ReadRolePermissions | WriteRolePermissions | ReadHistory | WriteHistorizing | InsertHistory | ReceiveEvents | Call |
Permission flag: 2559
Concatenated permissions: [{"roleId":15668,"permissions":163},{"roleId":15680,"permissions":2559},{"roleId":16036,"permissions":2559}]
Permissions: [{"roleId":15668,"permissions":163},{"roleId":15680,"permissions":2559},{"roleId":16036,"permissions":2559}]
6 Nov 12:48:55 - [warn] [OpcUa-Server:OPC UA Server] OPC UA Server: Folder not found for topic: ns=1;s=data
6 Nov 12:48:55 - [info] [debug:Function node debug]
{
payload: { opcuaCommand: 'setFolder' },
topic: 'ns=1;s=data',
_msgid: '38fd4af5a64dcea3',
_event: 'node:fdd117c2b041fa15',
accessLevel: 63,
userAccessLevel: 63,
accessRestrictions: 0,
permissions: [
{ roleId: 15668, permissions: 163 },
{ roleId: 15680, permissions: 2559 },
{ roleId: 16036, permissions: 2559 }
]
}
6 Nov 12:48:55 - [info] [debug:OPC UA node debug]
{
payload: '',
topic: 'ns=1;s=data',
_msgid: '38fd4af5a64dcea3',
_event: 'node:fdd117c2b041fa15',
accessLevel: 63,
userAccessLevel: 63,
accessRestrictions: 0,
permissions: [
{ roleId: 15668, permissions: 163 },
{ roleId: 15680, permissions: 2559 },
{ roleId: 16036, permissions: 2559 }
]
}