2015-11-30 09:54:45 +08:00
|
|
|
export declare class BLE {
|
|
|
|
static scan(services: any[], seconds: number): void;
|
2015-12-01 01:09:50 +08:00
|
|
|
static startScan(services: any[]): void;
|
|
|
|
static stopScan(): void;
|
|
|
|
static connect(deviceId: string): void;
|
|
|
|
static disconnect(deviceId: string): void;
|
|
|
|
static read(deviceId: string, serviceUUID: string, characteristicUUID: string): void;
|
|
|
|
static write(deviceId: string, serviceUUID: string, characteristicUUID: string, value: ArrayBuffer): void;
|
|
|
|
static writeWithoutResponse(deviceId: string, serviceUUID: string, characteristicUUID: string, value: ArrayBuffer): void;
|
2015-11-30 09:54:45 +08:00
|
|
|
}
|