chilipeppr / serial-port-json-server

Serial Port JSON Server is a websocket server for your serial devices. It compiles to a binary for Windows, Mac, Linux, Raspberry Pi, or BeagleBone Black that lets you communicate with your serial port from a web application. This enables web apps to be written that can communicate with your local serial device such as an Arduino, CNC controller, or any device that communicates over the serial port.
http://chilipeppr.com
GNU General Public License v2.0
321 stars 101 forks source link

Add support for sending base64 encoded data values via sendJson #31

Open DanielJoyce opened 7 years ago

DanielJoyce commented 7 years ago

The encodind can be specified on a per data-item basis, and protects binary data against corruption in the json/utf8 decoding process

Example

'sendjson {"Cmd":"Write", "P":"/dev/ttyUSB1", "Data":[{"D":"SGVsbG8gV29ybGQK", "Base64":"true"}]}'