A serial-to-web example using node.js, node-serialport, and socket.io. This example converts a serial string into a JSON object and sends that via webSocket
To use this, you should read up on node.js
To install it:
- make sure you've installed node.js
- either clone the project in git or download it
- from the command line,change directories to the directory where you downloaded the project
Enter the following:
You should end up with a new directory called node_modules, which will include socket.io, node-serialport, and express.js.
To run it, enter:
node SerialToJSON.js portname
Where portname is the name of your serial port.