learning c
- Compile readSwitch.cpp
- Compile board.cpp
// For compiling Server
- Goto Multichat folder and run "make" command
- After generating build, move chat build to switchboard folder
// FInally run two files
- ./board
- ./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