UNPKG

rxpoweredup

Version:

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

13 lines (12 loc) 695 B
import { Observable } from 'rxjs'; import { InboundMessageDissector } from './inbound-message-dissector'; import { MessageType } from '../constants'; import { CharacteristicDataStreamConfig, ICharacteristicDataStreamFactory } from '../hub'; import { RawMessage } from '../types'; export declare class CharacteristicDataStreamFactory implements ICharacteristicDataStreamFactory { private readonly dissector; private readonly characteristicValueChangedEventName; constructor(dissector: InboundMessageDissector); create(characteristic: BluetoothRemoteGATTCharacteristic, config: CharacteristicDataStreamConfig): Observable<RawMessage<MessageType>>; private getValueFromEvent; }