You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My suggestion is to parse the argument info from the .xml and use it.
For the method we could add a prototype declaration to the generated .h file. The user then can add the actual implementation to its own code, using that prototype.
The question is how to name that prototype. Perhaps based on the hierachy of the node, so in this example it would be methodCallback_Gateway_enterBootloader(.....).
This is a feature that I need, and I am willing to implement this myself and open a PR for it.
Right now I am looking for feedback:
Is this feature already there and I just missed it?
Is this a stupid idea because of $reason that I am not aware of?
naming of the callback method
Anything else I forgot?
Background Information / Reproduction Steps
./nodeset_compiler.py -e ../schema/Opc.Ua.NodeSet2.Minimal.xml -x test-function.xml foobar
With the .xml I used: test-function.xml.txt
I did not build it myself. Instead the 1.0 release was used.
Checklist
open62541 Version (release number or git tag):
Other OPC UA SDKs used (client or server): UaModeler
Operating system: Windows10
Logs (with UA_LOGLEVEL set as low as necessary) attached
Wireshark network dump attached
Self-contained code example attached
Critical issue: nope
The text was updated successfully, but these errors were encountered:
Description
I would like to see the nodeset-compiler to handle Method nodes better.
Currently the following code is generated:
This is missing:
My suggestion is to parse the argument info from the .xml and use it.
For the method we could add a prototype declaration to the generated .h file. The user then can add the actual implementation to its own code, using that prototype.
The question is how to name that prototype. Perhaps based on the hierachy of the node, so in this example it would be
methodCallback_Gateway_enterBootloader(.....)
.This is a feature that I need, and I am willing to implement this myself and open a PR for it.
Right now I am looking for feedback:
Background Information / Reproduction Steps
./nodeset_compiler.py -e ../schema/Opc.Ua.NodeSet2.Minimal.xml -x test-function.xml foobar
With the .xml I used: test-function.xml.txt
I did not build it myself. Instead the 1.0 release was used.
Checklist
UA_LOGLEVEL
set as low as necessary) attachedThe text was updated successfully, but these errors were encountered: