simple-modbus
Version:
A simple library for working with Modbus with Typescript bindings.
18 lines (17 loc) • 735 B
TypeScript
import '../util/typed-event';
import { ModbusServer } from '../modbus-server';
import { ModbusCommandFactoryOptions } from '../modbus-command-factory';
/**
* Options that only affect the server (timeouts, etc.) should go here,
* options that affect the commands being emitted should be added to [ModbusCommandFactoryOptions](../classes/modbuscommandfactoryoptions.html)
*/
export interface ModbusTcpServerOptions extends ModbusCommandFactoryOptions {
}
export declare class ModbusTcpServer extends ModbusServer {
private _tcpServer;
private _commandFactory;
private _options?;
constructor(options?: ModbusTcpServerOptions);
listen(port: number): ModbusTcpServer;
close(): ModbusTcpServer;
}