UaClient — command-line OPC UA client built on eso::uatools::Client (ualib). More...
#include <eso/uatools/ualib/client.hpp>#include <ifw/fnd/defs/logger.hpp>#include <ifw/fnd/defs/dataType.hpp>#include <algorithm>#include <atomic>#include <cctype>#include <chrono>#include <cstdint>#include <cstdlib>#include <iostream>#include <map>#include <mutex>#include <sstream>#include <string>#include <thread>#include <variant>#include <vector>#include <ncurses.h>Functions | |
| int | main (int argc, char **argv) |
UaClient — command-line OPC UA client built on eso::uatools::Client (ualib).
Subcommands: status — connect, print server info, disconnect. read — read one or more nodes and print their values. write — write a typed value to a node.
Usage: UaClient –uri opc.tcp://host:port [–user U –pass P] status UaClient –uri opc.tcp://host:port read <node> [<node> ...] UaClient –uri opc.tcp://host:port write <node> <type>
Types for write: bool, i32, u32, i64, u64, f32, f64, string.
Exit codes: 0 on success, 1 on usage error, 2 on connection failure, 3 on operation failure.
| int main | ( | int | argc, |
| char ** | argv ) |