UNPKG

rxpoweredup

Version:

A Typescript RxJS-based library for controlling LEGO Powered UP hubs & peripherals.

10 lines (9 loc) 558 B
import { Observable } from 'rxjs'; import { InjectionToken } from 'tsyringe'; import type { RawMessage } from '../types'; import { MessageType } from '../constants'; import type { CharacteristicDataStreamConfig } from './characteristic-data-stream-config'; export interface ICharacteristicDataStreamFactory { create(characteristic: BluetoothRemoteGATTCharacteristic, config: CharacteristicDataStreamConfig): Observable<RawMessage<MessageType>>; } export declare const CHARACTERISTIC_DATA_STREAM_FACTORY: InjectionToken<ICharacteristicDataStreamFactory>;