Skip to content

Commit

Permalink
修改 OPC UA 文档中的监视部分错误描述
Browse files Browse the repository at this point in the history
  • Loading branch information
Flynn1988 authored and zhaoxi-scut committed Jul 6, 2024
1 parent 776ba3c commit 9ffcecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/tutorials/modules/tools/opcua.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ int main()
rm::Client clt("opc.tcp://127.0.0.1:4840");
auto node = rm::nodeObjectsFolder | clt.find("number");
// 监视变量,这里的 onChange 同样可以写成无捕获列表的 lambda 表达式,因为存在隐式转换
client.monitor(node_id, onChange, 5);
client.monitor(node, onChange, 5);
// 线程阻塞
client.spin();
}
Expand Down

0 comments on commit 9ffcecb

Please sign in to comment.