/Sboard

learning c

Primary LanguageC++

Sboard

learning c

  1. Compile readSwitch.cpp
  2. Compile board.cpp

// For compiling Server

  1. Goto Multichat folder and run "make" command
  2. After generating build, move chat build to switchboard folder

// FInally run two files

  1. ./board
  2. ./chat

// Infinity copy files to /etc/systemd/system Register to systemctl using below sequential programs

systemctl daemon-reload foo.service
systemctl enable foo.service
systemctl start foo.service
systemctl status foo.service

Alternatively edit "/etc/rc.local" file add below code above exit 0 line

/home/pi/Sboardv2/switchboard/board &

Below are static commands:

test = for initialisation s = for status t1 = for toggle

Mac:

echo "t1" | nc raspberrypi.local 30666