Closed LeanderGlanda closed 2 months ago
I did some additional work towards finalizing this. But I won't be able to finish this myself. Currently there is a problem where UaExpert does not display the ArgumentOutput. It is possible to successfully access the input argument in the callback. I guess I'm somehow returning a wrong datatype. Looking into the open62541 server code while debugging may expose some information. I will document everything for Behrang so he can take over. He will probably continue using the already open PRs, I gave him write permissions to my forks.
A quick heads-up: I refactored the implementation and the example works now. Some more detail work is needed to get this polished but I think I can merge this within the next days.
@sgoll This is a first half-working implementation for adding and using method nodes. Feel free to leave feedback, if an approach like this is any good or how it should be changed. Taking a look relatively soon (let's say until tomorrow lunch time or afternoon) would be appreciated as then I know if I'm working in the correct direction.
Use case of these methods nodes would be a client calling a callback on the server that uses some function or does something and then returns something based on that.
Right now adding the method node works, it can be called in UaExpert. As far as I could see in the debugger providing parameters didn't work. If you see any (obvious) errors feel free to leave a comment on that.
Ignore random comments or bad error/panic handling, I will take care of that tomorrow.