You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

ble-serial

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ble-serial

Virtual serial device over BLE

0.5.0
latest
Source
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 16 Sep 2017

Did you know?

Socket

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