simple-modbus
Version:
A simple library for working with Modbus with Typescript bindings.
16 lines (15 loc) • 1.12 kB
TypeScript
import { ForceMultipleCoilsCommand, ForceSingleCoilCommand, PresetMultipleRegistersCommand, PresetSingleRegisterCommand, ReadCoilStatusCommand, ReadHoldingRegistersCommand, ReadInputRegistersCommand, ReadInputStatusCommand } from './modbus-commands';
import { TypedEvent } from './util/typed-event';
import { ModbusCommandError } from './error/modbus-errors';
export declare abstract class ModbusServer {
readonly onReadCoilStatus: TypedEvent<ReadCoilStatusCommand>;
readonly onReadInputStatus: TypedEvent<ReadInputStatusCommand>;
readonly onReadHoldingRegisters: TypedEvent<ReadHoldingRegistersCommand>;
readonly onReadInputRegisters: TypedEvent<ReadInputRegistersCommand>;
readonly onForceSingleCoil: TypedEvent<ForceSingleCoilCommand>;
readonly onPresetSingleRegister: TypedEvent<PresetSingleRegisterCommand>;
readonly onForceMultipleCoils: TypedEvent<ForceMultipleCoilsCommand>;
readonly onPresetMultipleRegisters: TypedEvent<PresetMultipleRegistersCommand>;
readonly onCommandError: TypedEvent<ModbusCommandError>;
readonly onServerError: TypedEvent<Error>;
}