Files
georg e6a8261975 docs(ex): specify codeblock as sh
specify that teh codeblock is of type .sh. this is to have color formatting.
2026-03-06 17:19:15 +01:00
..
…
2026-03-06 17:19:15 +01:00
…

Zephyr server example

HOWTO

# Initialize the west workspace
cd examples/zephyr
west init -l server
west update
# Build the native sim executable
# "native_sim" may need to be changed based on your system.
# (see https://docs.zephyrproject.org/latest/boards/native/native_sim/doc/index.html#and-64bit-versions )
cd server
west build -p -b native_sim
# Setup host side ethernet interface (see
# https://github.com/zephyrproject-rtos/net-tools or
# https://docs.zephyrproject.org/latest/boards/native/native_sim/doc/index.html#peripherals)
sudo ./<path-to-net-tools>/net-setup.sh &
# Execute the OPC UA server
./build/zephyr/zephyr.exe &
# Read the answer value via python-opcua CLI
uaread -u "opc.tcp://192.0.2.10:4840" -n "ns=1;s=the.answer"

Expected output of uaread:

WARNING: Requested secure channel timeout to be 3600000ms, got 600000ms instead
42