SimpleBLE Adapter.

interface Adapter {
    active: boolean;
    address: string;
    identifier: string;
    pairedPeripherals: Peripheral[];
    peripherals: Peripheral[];
    release(): void;
    scanFor(ms: number): boolean;
    scanStart(): boolean;
    scanStop(): boolean;
    setCallbackOnScanFound(cb: ((peripheral: Peripheral) => void)): boolean;
    setCallbackOnScanStart(cb: (() => void)): boolean;
    setCallbackOnScanStop(cb: (() => void)): boolean;
    setCallbackOnScanUpdated(cb: ((peripheral: Peripheral) => void)): boolean;
}

Properties

active: boolean
address: string
identifier: string
pairedPeripherals: Peripheral[]
peripherals: Peripheral[]

Methods