# ble-serial

> Virtual serial device over BLE

Latest version **0.5.0** (published 2017-09-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install ble-serial
pnpm add ble-serial
yarn add ble-serial
bun add ble-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.5.0 |
| Published | 2017-09-16 |
| First published | 2015-12-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18 |
| Author | Luis Montes |
| Maintainers | monteslu |

## Links

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

## Dependencies (2)

- [debug](https://npm.io/package/debug.md) ^2.2.0
- [noble](https://npm.io/package/noble.md) ^1.2.1

## Recent versions

- 0.5.0 (latest) — 2017-09-16
- 0.4.1 — 2016-01-11
- 0.4.0 — 2016-01-11
- 0.3.0 — 2016-01-02
- 0.2.0 — 2015-12-30
- 0.1.0 — 2015-12-30

## README

ble-serial
=============

A virtual [node-serialport](https://github.com/voodootikigod/node-serialport) stream implementation that uses Bluetooth Low Energy as the transport.


# BLESerialPort

Use BLE to send/receive data to a remote physical device:

```js
var BLESerialPort = require('ble-serial').SerialPort;
var firmata = require('firmata');

//create the mqtt serialport and specify the send and receive topics
var serialPort = new BLESerialPort({
  serviceId: '', //OPTIONAL
  transmitCharacteristic: '', //OPTIONAL
  receiveCharacteristic: '' //OPTIONAL
});

//use the virtual serial port to send a command to a firmata device
var board = new firmata.Board(serialPort, function (err, ok) {
  if (err){ throw err; }
  //light up a pin
  board.digitalWrite(13, 1);
});

```

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