Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
.gitignore
LICENSE
README.md
index.js
package.json
sp-socket.js

README.md

sp-socket

This program communicates with the serialport using the socket.io. It is possible to communicate with one serialport in one socket.io name. Therefore, use multiple socket.io in browser, it is possible to communicate with multiple serialport. Browser's program is refer to jquery.sp_connector.js.

install

 npm install sp-socket

Please refer to serialport install.

How to use

var sp_socket = require('sp-socket');
var sp = new sp_socket(listen_port, socket_name, max_socket, socket_options);
  • socket.io's listen port.

  • socket.io's name

  • socket_name0 ... socket_nameX (X = max_socket - 1)

  • Please refer to socket.io. Also this program's 'log level' equal socket.io's 'log level'.

License

MIT

Something went wrong with that request. Please try again.