Server and Client require the following to run:
- Python3.7+
- pyserial
- opcua-asyncio
git clone https://github.com/jicampos/opcua-on-raspberrypi.git
cd opcua-on-raspberrypi
pip install -r requirements.txt
python opcua_server.py --ip 0.0.0.0 --port 4840 --serial-port /dev/ttyUSB0
Run command line interface
python opcua_client.py --ip 0.0.0.0 --port 4840
Execute list of commands from input file
python opcua_client.py --ip 0.0.0.0 --port 4840 --file commands.txt