I create the first time a UaModeler project without generating anything.
This is meaning, I generate the code without create any typedef or any objects in the adress space.
Only the new, empty UaModeler project.
I copy the generated files into my project folder. Then I compile it without an error und start the programm.
During the provider initialisation an error occured and the server shutdown.
At least I found the problem. In the file uaprovder_NAME.c are some defines.
Code: Select all
/* The number of nodes managed by the server. */
#if HAVE_ENCODING_BINARY
#define UAPROVIDER_HILSCHER_OPC_UA_NETPROXY_NUMBEROFNODES1 -2
#define UAPROVIDER_HILSCHER_OPC_UA_NETPROXY_NUMBEROFREFERENCES1 -4
#else
#define UAPROVIDER_HILSCHER_OPC_UA_NETPROXY_NUMBEROFNODES1 -4
#define UAPROVIDER_HILSCHER_OPC_UA_NETPROXY_NUMBEROFREFERENCES1 -8
#endif
#define UAPROVIDER_HILSCHER_OPC_UA_NETPROXY_NUMBEROFMETHODS1 0
Is it right, that I either must create enough Object or I edit the two define to 0?
Code: Select all
/* The number of nodes managed by the server. */
#if HAVE_ENCODING_BINARY
#define UAPROVIDER_HILSCHER_OPC_UA_NETPROXY_NUMBEROFNODES1 -2
#define UAPROVIDER_HILSCHER_OPC_UA_NETPROXY_NUMBEROFREFERENCES1 -4
#else
#define UAPROVIDER_HILSCHER_OPC_UA_NETPROXY_NUMBEROFNODES1 0
#define UAPROVIDER_HILSCHER_OPC_UA_NETPROXY_NUMBEROFREFERENCES1 0
#endif
#define UAPROVIDER_HILSCHER_OPC_UA_NETPROXY_NUMBEROFMETHODS1 0
I use the newest version UaModeler v1.3.0 "242" (Linux).
Thanks in advance!
Regards!
mLang_de