Hello everybody,
I tried running the TestOpcUa demo bundled with the free pascal open62541 wrapper.
I use library version 1.2.3 located in same dir as application.
When I try starting the server with the <start> button I get this:
user@debian:~/Documents/dev/3rd-party/fpopen62541-main$ LD_LIBRARY_PATH=. ./TestOpcUa
[...]
[2022-08-25 10:11:59.161 (UTC+0200)] warn/server AccessControl: Unconfigured AccessControl. Users have all permissions.
[2022-08-25 10:11:59.161 (UTC+0200)] info/server AccessControl: Anonymous login is enabled
[2022-08-25 10:11:59.161 (UTC+0200)] warn/server Username/Password configured, but no encrypting SecurityPolicy. This can leak credentials on the network.
[2022-08-25 10:11:59.161 (UTC+0200)] warn/userland AcceptAll Certificate Verification. Any remote certificate will be accepted.
[2022-08-25 10:11:59.161 (UTC+0200)] info/network TCP network layer listening on opc.tcp://debian:4840/
[2022-08-25 10:11:59.212 (UTC+0200)] info/network Shutting down the TCP network layer
Last line in log is the problem. It seems that server is started and immedialy stopped, as if the "running" variable passed to control server execution is not read correclty, despite in TestOpcUa is set correctly before passing to run method.
I tried to create another C program to call the library directly and once started it does not show the above red line:
user@debian:~/dev/open62541-v1.2.3/build/bin/custom$ LD_LIBRARY_PATH=. ./custom-OpcServer
[...]
[2022-08-25 10:09:36.109 (UTC+0200)] warn/server AccessControl: Unconfigured AccessControl. Users have all permissions.
[2022-08-25 10:09:36.109 (UTC+0200)] info/server AccessControl: Anonymous login is enabled
[2022-08-25 10:09:36.109 (UTC+0200)] warn/server Username/Password configured, but no encrypting SecurityPolicy. This can leak credentials on the network.
[2022-08-25 10:09:36.109 (UTC+0200)] warn/userland AcceptAll Certificate Verification. Any remote certificate will be accepted.
[2022-08-25 10:09:36.109 (UTC+0200)] info/network TCP network layer listening on opc.tcp://debian:4840/
Any ideas?
Thank you