refactoring

This commit is contained in:
Max Lynch
2015-11-29 19:54:45 -06:00
parent 9d54bfcd0b
commit dfef6dcfe8
42 changed files with 719 additions and 185 deletions
+36
View File
@@ -0,0 +1,36 @@
import {Plugin, Cordova} from './plugin';
@Plugin({
name: 'BluetoothLowEnergy',
plugin: 'cordova-plugin-ble-central',
pluginRef: 'ble',
pluginRepo: 'https://github.com/don/cordova-plugin-ble-central'
})
export class BLE {
@Cordova({
successIndex: 2,
errIndex: 3
})
static scan(services:any[], seconds:number) {}
@Cordova()
static startScan(services:any[]){};
@Cordova()
static stopScan(){};
@Cordova()
static connect(deviceId:string){};
@Cordova()
static disconnect(deviceId:string){};
@Cordova()
static read(deviceId:string, serviceUUID:string, characteristicUUID:string){};
@Cordova()
static write(deviceId:string, serviceUUID:string, characteristicUUID:string, value:ArrayBuffer){};
@Cordova()
static writeWithoutResponse(deviceId:string, serviceUUID:string, characteristicUUID:string, value:ArrayBuffer){};
}