Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ble-io

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ble-io

IO class for generic GPIO service over Bluetooth low energy

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

ble-io

Ble-io is a library for writing javascript programs that interact with Bluetooth Low-Energy (BLE) devices. It can also be used an IO plugin for use with the johnny-five robotics framework.

The intention is to be able to use a simple and generic API for interacting with the GPIO pins across many different types of BLE peripherals.

Ble-io was built at IcedDev

Installation

npm install ble-io

Getting Started

In order to use the ble-io library, you will need to load a firmware onto the BLE peripheral that supports the ble-io Service and Characteristics described here.

One implementation of the ble-io service is for Intel curie based boards including the Arduino 101 and TinyTile here: firmware

Usage

const BleIO = require("ble-io");
const io = new BleIO();

io.on("ready", function() {
  //turn on pin 13
  this.digitalWrite(13, 1);
});

With johnny-five

const BleIO = require("ble-io");
const five = require("johnny-five");

const board = new five.Board({
  io: new BleIO()
});

board.on("ready", function() {
  cosnt led = new five.Led(13);
  led.blink(500);
});

TODO

  • We need a way to query pin capabilities. Right now the code is assuming 20 pins all able to accept any pin mode.
  • i2C support needs to be added as a new Characteristic to the reference firmware

Keywords

FAQs

Package last updated on 07 Jul 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc