@br8kppooint/visca
Version:
Advanced nodejs library for working with VISCA-based PTZ cameras over IP and over serial connections.
24 lines (23 loc) • 771 B
TypeScript
/// <reference types="node" />
import { EventEmitter } from 'events';
import { SerialPort } from 'serialport';
import { ViscaCommand } from './command';
import { ViscaTransport } from './transport';
export declare class SerialTransport extends EventEmitter implements ViscaTransport {
portname: string;
timeout: number;
baudRate: number;
debug: boolean;
started: boolean;
serialport: SerialPort;
uuid: string;
constructor(portname?: string, timeout?: number, baudRate?: number, debug?: boolean);
start(): void;
restart(): void;
close(): void;
onOpen(): void;
onClose(e: string): void;
onError(e: string): void;
onData(packet: Buffer): void;
write(viscaCommand: ViscaCommand): void;
}