Socket
Socket
Sign inDemoInstall

serial-websocket

Package Overview
Dependencies
145
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    serial-websocket

Connects serial port to websocket


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

serial-websocket

A bidirectional websocket to serial port server bridge. It can be used to send/receive commands into an Arduino or Raspberry Pi board through web.

  • Receives data from websocket and sends it into the serial port
  • Receives data from the serial port and sends it into the websocket
  • Supports multiple websocket connections
  • Arduino serial connection and Angular client example are provided

NPM NPM Downloads

Screenshot

Installation

npm install serial-websocket --save

Usage

let options = {
  serialPortName: "/dev/cu.usbmodem142301",
  serialPortNameRate: 9600,
  webSocketPortNumber: 8081
};

const serial_websocket = require("serial-websocket")(options);
serial_websocket.start();

Angular Client

An Angular client and Arduino demo code is provided here.

Logger

The logger used in this package is available separately in log-with-statusbar npm package

Keywords

FAQs

Last updated on 23 Aug 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc