serialport-server
Expose serial ports over HTTP
Last updated 4 years ago by pghalliday .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install serialport-server 
SYNC missed versions from official npm registry.

serialport-server

Expose serial ports over HTTP.

Usage

npm install -g serialport-server

Create a JS config file with the following contents

module.exports = {
  logger: {
    filename: '/path/to/log/file',
    level: 'info'
  },
  capture: {
    directory: '/path/to/capture/directory'
  },
  serialPorts: {
    name: {
      device: '/path/to/device',
      retryPeriod: 1000,
      options {
        baudrate: 115200
      }
    },
    ...
  }
}

Then start the server with

serialport-server /path/to/config port

Capture files will be created at /path/to/capture/directory/name.log and will be downloadable from http://localhost:port/serialports/name.log.

Socket.IO sockets for each serial port will be exposed at http://localhost:port/serialports/name. See socket.io-serialport for the interface.

An HTML interface implemented using hterm will be browsable at http://localhost:port/.

Current Tags

  • 1.0.6                                ...           latest (4 years ago)

7 Versions

  • 1.0.6                                ...           4 years ago
  • 1.0.5                                ...           4 years ago
  • 1.0.4                                ...           4 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 7
Dependencies (5)
Dev Dependencies (18)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |