Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

kevinherron/pi-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raspberry Pi OPC-UA Server

Installation

Download the latest release from https://github.com/kevinherron/pi-server/releases or package it from the latest source:

git clone https://github.com/kevinherron/pi-server.git
cd pi-server
mvn package

Copy that to your Raspberry Pi then unzip it:

unzip pi-server-1.1.0.zip 
cd pi-server-1.1.0/
chmod +x bin/pi-server.sh

GPIO

GPIO configuration is in config/gpio-config.json. Use config/gpio-config.json.example as a template.

IMPORTANT: The pin numbering scheme is NOT the same as what you see on the Pi. It's based on the pi4j and wiringpi abstract pin numbering scheme.

Running PiServer

With the above done and in place, simply invoke sudo bin/pi-server.sh start and wait.

You can tail the logs with tail -f logs/wrapper.log | cut -d '|' -f 4 and watch for a message about binding endpoints to know when it's started.