Replies: 3 comments 1 reply
-
I'll investigate and let you know what I find. Certainly the server should not crash when it starts with a client tries to use a session id from the previous run. |
Beta Was this translation helpful? Give feedback.
-
Looks to me like this was a side-effect of the switch to DataValues across the board - it was wrapping a function that returns *DataValue in another function that returns a *DataValue. I think I got it fixed as part of some access level feature work. Try the
|
Beta Was this translation helpful? Give feedback.
-
I also found my mistake
I passed the value of Val to the AddNewVariableNode function instead of a pointer to this variable, it was strange that it worked without a connected client and didn't work with a connected one. I also found that after restarting the server with a connected client, the data in uaExpert does not match the DisplayName. At the first start of the server (with disabled client) and connecting UaExpert to it, the data is correct (Displayname, node id and value are displayed correctly) (photo 1). After restarting the server already with the connected client Node ID changes for the same Displayname and the data values for Displayname are not correct, I am not sure whose side is the error, either UaExpert does not update the correspondence of NodeID with DisplayName, or this implementation should be in my code or in the library code, if you know the answer, please tell me. (photo2) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
main.go.txt
I use uaexpert to check the health of the server. When I run the main.go code for the first time, the server starts without errors, then I connect to it using uaexpert and see the value I need, but at this time the console receives a lot of errors (photo 1). After I disconnect the server and start it again without closing and breaking the connection with uaexpert and the server does not start and gives an error (photo 2). Please help, what am I doing wrong? Maybe there is an extended example of using the server with setting attributes and signal statuses?
Translated with DeepL.com (free version)


Beta Was this translation helpful? Give feedback.
All reactions