UNPKG

raw-modem

Version:

A library to send raw command to a modem and received the response

15 lines (14 loc) 571 B
import { ISerialPort } from './ISerialPort'; import { ModemOptions } from './ModemOptions'; import Rx = require('rxjs/Rx'); export declare class DefaultSerialPort implements ISerialPort { private _portOptions; private _devicePort; constructor(); readonly devicePort: any; _checkDevicePort(): void; open(): Rx.Observable<void>; close(): Rx.Observable<void>; write(command: string, callback?: (buffer: any, subscriber: Rx.Subscriber<string>) => void): Rx.Observable<string>; setPortOptions(options: ModemOptions): Rx.Observable<void>; }