0.0.4 • Published 4 years ago

vista-ble v0.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Vistable_Plugin

Capacitor BLE plugin

Installation

npm i --save vista-ble

Example

// Launch BLE
//
import { Plugins } from '@capacitor/core';
const { VistablePlugin } = Plugins;

// into some function
const options = {
  'apikey': '83dcb4b4-8d8d-4548-b0f7-86eb3bed11a7',
  'name': 'lumisheets', // name of the connecter (ble-${name} for ble, or ${name}.local for wifi)
  'connector': 'ble', // can be wifi
};
// console.log(options);  
VistablePlugin.initManager(options).then((result) => {
});

//TURN ON Light at ID 0, 1 et 2
// WIN sera de la couleur choisie, second & third, blanc
VistablePlugin.turnOn({ win: '0', second: '1', third: '2' });

//TURN OFF
VistablePlugin.turnOff();
0.0.4

4 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago