# udp-serial

> Virtual serial device over udp

Latest version **0.2.0** (published 2016-05-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install udp-serial
pnpm add udp-serial
yarn add udp-serial
bun add udp-serial
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2016-05-01 |
| First published | 2015-07-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Author | Luis Montes |
| Maintainers | monteslu |
| Keywords | firmata, johnny-five, serialport, udp, dgram |

## Links

- npm: https://www.npmjs.com/package/udp-serial
- Repository: https://github.com/monteslu/udp-serial
- Homepage: https://github.com/monteslu/udp-serial#readme
- Issues: https://github.com/monteslu/udp-serial/issues
- npm.io page: https://npm.io/package/udp-serial

## Recent versions

- 0.2.0 (latest) — 2016-05-01
- 0.1.2 — 2015-07-10
- 0.1.1 — 2015-07-10
- 0.1.0 — 2015-07-10

## README

udp-serial
=============

A virtual [node-serialport](https://github.com/voodootikigod/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:

```js
'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);
});

```

---
_Source: https://npm.io/package/udp-serial · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
