rxpoweredup
Version:
A Typescript RxJS-based library for controlling LEGO Powered UP hubs & peripherals.
12 lines (11 loc) • 523 B
TypeScript
import { Observable } from 'rxjs';
import { BluetoothDeviceWithGatt } from '../types';
import { IHubScannerErrorFactory } from './i-hub-scanner-error-factory';
import { IHubScanner } from './i-hub-scanner';
export declare class HubScanner implements IHubScanner {
private readonly hubScannerErrorFactory;
private readonly bluetoothApi;
constructor(hubScannerErrorFactory: IHubScannerErrorFactory, bluetoothApi: Bluetooth);
discoverHub(): Observable<BluetoothDeviceWithGatt>;
private isDeviceWithGatt;
}