Socket
Socket
Sign inDemoInstall

udp-serial

Package Overview
Dependencies
199
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    udp-serial

Virtual serial device over udp


Version published
Weekly downloads
99
decreased by-29.79%
Maintainers
1
Install size
5.26 kB
Created
Weekly downloads
 

Readme

Source

udp-serial

A virtual node-serialport implementation that uses UDP/dgram as the transport.

Installation

npm install udp-serial

UDPSerialPort

Use UDP/dgram to send/receive data to a remote physical device:

'use strict';

var VirtualSerialPort = require('udp-serial').SerialPort;
var firmata = require('firmata');

//create the udp serialport and specify the host and port to connect to
var sp = new VirtualSerialPort({
  host: 'localhost',
  type: 'udp4',
  port: 41234
});

//use the serial port to send a command to a remote firmata(arduino) device
var board = new firmata.Board(sp);
board.on('ready', function(){
  console.log('actually connected to an arduino!');
  board.digitalWrite(13, 1);
});

Keywords

FAQs

Last updated on 01 May 2016

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