Central: {
    addEventListener<T>(type, listener): void;
    connectPeripheral(peripheral, opt?): Promise<void>;
    disconnectPeripheral(peripheral): Promise<void>;
    getBluetoothState(): BluetoothState;
    getCharacteristicProperties(peripheral, serviceUuid, characteristicUuid, instanceIndex?): Promise<number>;
    getDiscoveredServices(peripheral): Promise<string[]>;
    getPeripheralMtu(peripheral): Promise<number>;
    getPeripheralName(peripheral): Promise<string>;
    getScanStatus(): ScanStatus;
    getServiceCharacteristics(peripheral, serviceUuid): Promise<string[]>;
    initialize(): void;
    isInitialized(): boolean;
    readCharacteristic(peripheral, serviceUuid, characteristicUuid, options?): Promise<Uint8Array>;
    readPeripheralRssi(peripheral, _timeoutMs?): Promise<number>;
    removeEventListener<T>(type, listener): void;
    shutdown(): void;
    startScan(services, scanCallback): Promise<void>;
    stopScan(): Promise<void>;
    subscribeCharacteristic(peripheral, serviceUuid, characteristicUuid, onValueChanged, options?): Promise<void>;
    unsubscribeCharacteristic(peripheral, serviceUuid, characteristicUuid, options?): Promise<void>;
    writeCharacteristic(peripheral, serviceUuid, characteristicUuid, data, options?): Promise<void>;
} = ...

Type declaration

Generated using TypeDoc