Serial Port JSON Server
Installing on Raspberry Pi:
- Do a
wget serial-port-json-server-1.95_linux_arm.tar.gz
from the command line - Then
gzid -d serial-port-json-server-1.95_linux_arm.tar.gz
- Then
tar -xvf serial-port-json-server-1.95_linux_arm.tar.gz
- Then
cd serial-port-json-server-1.95_linux_arm
- Then
sudo ./serial-port-json-server -createstartupscript
- Then run
sudo /etc/init.d/serial-port-json-server start
- You will now have SPJS (Serial Port JSON Server) start automatically on boot of your Raspberry Pi
- You can now go back to ChiliPeppr and scan for hosts and your desktop computer should find SPJS on your network.
Changes in 1.95
- Added better TCP server module to Cayenn to support ESP8266 and ESP32 sending tcp messages into SPJS to regurgitate to browser, i.e. back up to ChiliPeppr. Prior to this only UDP messages were being handled gracefully.
- Made logging turn off later to see more info on startup of what ports SPJS is running on
- Added a better error output when address port already in use to help folks who do not realize they may be trying to run SPJS a 2nd time
- Added ability to turn off Cayenn UDP/TCP server
- Added ability to run -createstartupscript on Linux to create an /etc/init.d launcher for auto-start of SPJS on boot