dvb-ble-manager

1.0.7 • Public • Published

dvb-ble-manager

Setup

To run this project, install it locally.

$ cd ../dir
$ npm install ble-manager

You can also install it globally

$ npm install ble-manager -g

Usage

Require it into your project and initiate a class

const ble = require('dvb-ble-manager');
const connection = new ble();

Methods

First you need to add the "connect" method to an event listener,for example: 'click'

element.addEventListener('click',connection.connect)

Once you select the device,you can get the list of files, serial number and shortname of the device

const list_of_files = connection.getFileList();
const serial_number = connection.getSerialNumber();
const shortname = connection.getShortName();

/dvb-ble-manager/

    Package Sidebar

    Install

    npm i dvb-ble-manager

    Weekly Downloads

    0

    Version

    1.0.7

    License

    ISC

    Unpacked Size

    7.33 kB

    Total Files

    3

    Last publish

    Collaborators

    • carlosfsousa