Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
ADXL326
Joystick
README.md
index.html
index.js
package.json

README.md

SerialToJSON.js

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:

npm install 

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.