En öppen och gratis källkodsimplementation av OPC UA.
För att lära sig hur OPC UA fungerar och vad man kan göra med OPC UA
Raspberry Pi 4 Model B Rev 1.5 PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)"
sudo apt install git
sudo apt install build-essential
sudo apt install gcc
sudo apt install pkg-config
sudo apt install cmake
sudo apt install python
sudo apt install cmake-curses-gui # for the ccmake graphical interface
sudo apt install libmbedtls-dev # for encryption support
sudo apt install check libsubunit-dev # for unit tests
sudo apt install python-sphinx graphviz # for documentation generation
sudo apt install python-sphinx-rtd-theme # documentation style
[/code]git clone https://github.com/open62541/open62541.git
cd open62541
git submodule update --init --recursive
mkdir build && cd build
-DCMAKE_INSTALL_PREFIX=/usr/
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUA_NAMESPACE_ZERO=FULL -DCMAKE_INSTALL_PREFIX=/usr/ ..
make (detta tar en stund..)
sudo make install
mkdir servertest && cd servertest
cp ../examples/tutorial_server_variable.c .
gcc -std=c99 -o server tutorial_server_variable.c -lopen62541
./server
acke@raspi2:~/open62541/test $ ./server [2023-02-18 20:14:59.828 (UTC+0100)] info/eventloop Starting the EventLoop [2023-02-18 20:14:59.829 (UTC+0100)] warn/server AccessControl: Unconfigured AccessControl. Users have all permissions. [2023-02-18 20:14:59.829 (UTC+0100)] info/server AccessControl: Anonymous login is enabled [2023-02-18 20:14:59.829 (UTC+0100)] info/server AccessControl: x509 certificate user authentication is enabled [2023-02-18 20:14:59.829 (UTC+0100)] warn/server Username/Password Authentication configured, but no encrypting SecurityPolicy. This can leak credentials on the network. [2023-02-18 20:14:59.829 (UTC+0100)] warn/userland AcceptAll Certificate Verification. Any remote certificate will be accepted. [2023-02-18 20:15:00.012 (UTC+0100)] warn/server Writing the value of Node ns=1;s=the.answer failed with the following reason: DataType of the value is incom patible [2023-02-18 20:15:00.012 (UTC+0100)] info/session TCP 0 | SC 0 | Session "Administrator" | WriteRequest returned status code BadTypeMismatch Writing a string returned statuscode BadTypeMismatch [2023-02-18 20:15:00.012 (UTC+0100)] info/network TCP | Listening on all interfaces [2023-02-18 20:15:00.013 (UTC+0100)] info/network TCP 5 | Creating server socket for "0.0.0.0" on port 4840 [2023-02-18 20:15:00.013 (UTC+0100)] info/network TCP 6 | Creating server socket for "::" on port 4840 [2023-02-18 20:15:00.014 (UTC+0100)] info/network TCP 7 | Creating server socket for "127.0.1.1" on port 4840