我在这里发布这个是因为我确信这不是一个错误,它只是我的测试配置没有正确设置,但我无法指出我做错了什么。
我安装单个文件版本: https ://open62541.org/releases/
连同 open62541 的构建环境,然后构建并运行本教程: https ://github.com/open62541/open62541/blob/master/examples/tutorial_server_variable.c
使用这些命令:
gcc -std=c99 open62541.c myServerTuturial.c -o myServerTuturial
./myServerTuturial
但是,当我通过匿名登录与 UA 专家联系时,我无法看到每个示例中添加的任何变量。我确实看到并且能够订阅几个默认服务器参数。非常感谢任何可以解释为什么我没有看到变量的人。我相信它们应该出现在左窗格导航器的“对象”文件夹下。 ua 专家是版本 1.4.4 275
这是服务器的控制台输出:
[2020-09-15 13:14:03.091 (UTC-0700)] warn/server AccessControl: Unconfigured
AccessControl. Users have all permissions.
[2020-09-15 13:14:03.091 (UTC-0700)] info/server AccessControl: Anonymous login is enabled
[2020-09-15 13:14:03.091 (UTC-0700)] warn/server Username/Password configured, but no encrypting SecurityPolicy. This can leak credentials on the network.
[2020-09-15 13:14:03.091 (UTC-0700)] warn/userland AcceptAll Certificate Verification. Any remote certificate will be accepted.
Writing a string returned statuscode BadNodeIdUnknown
[2020-09-15 13:14:03.091 (UTC-0700)] info/network TCP network layer listening on opc.tcp://jchan-Z170N:4840/
[2020-09-15 13:14:03.328 (UTC-0700)] info/network Connection 5 | New connection over TCP from 127.0.0.1
[2020-09-15 13:14:03.328 (UTC-0700)] info/channel Connection 5 | SecureChannel 1 | SecureChannel opened with SecurityPolicy http://opcfoundation.org/UA/SecurityPolicy#None and a revised lifetime of 600.00s
[2020-09-15 13:14:03.329 (UTC-0700)] warn/channel Connection 5 | SecureChannel 1 | ActivateSession: Session not found
[2020-09-15 13:14:03.330 (UTC-0700)] info/channel Connection 5 | SecureChannel 1 | Session 6378a196-2473-375e-ed2e-0250fdff8f98 created
[2020-09-15 13:14:03.346 (UTC-0700)] info/session SecureChannel 1 | Session ns=1;g=6378a196-2473-375e-ed2e-0250fdff8f98 | Subscription 1 | Created the Subscription with a publishing interval of 500.00 ms
[2020-09-15 13:21:33.338 (UTC-0700)] info/channel Connection 5 | SecureChannel 1 | SecureChannel renewed with a revised lifetime of 600.00s
[2020-09-15 13:29:03.344 (UTC-0700)] info/channel Connection 5 | SecureChannel 1 | SecureChannel renewed with a revised lifetime of 600.00s