0.5.0 • Published 7 years ago

ble-serial v0.5.0

Weekly downloads
9
License
MIT
Repository
github
Last release
7 years ago

ble-serial

A virtual node-serialport stream implementation that uses Bluetooth Low Energy as the transport.

BLESerialPort

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

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);
});
0.5.0

7 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago