UNPKG

simple-modbus

Version:

A simple library for working with Modbus with Typescript bindings.

21 lines 1.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var typed_event_1 = require("./util/typed-event"); /* istanbul ignore next */ var ModbusServer = /** @class */ (function () { function ModbusServer() { this.onReadCoilStatus = new typed_event_1.TypedEvent(); this.onReadInputStatus = new typed_event_1.TypedEvent(); this.onReadHoldingRegisters = new typed_event_1.TypedEvent(); this.onReadInputRegisters = new typed_event_1.TypedEvent(); this.onForceSingleCoil = new typed_event_1.TypedEvent(); this.onPresetSingleRegister = new typed_event_1.TypedEvent(); this.onForceMultipleCoils = new typed_event_1.TypedEvent(); this.onPresetMultipleRegisters = new typed_event_1.TypedEvent(); this.onCommandError = new typed_event_1.TypedEvent(); this.onServerError = new typed_event_1.TypedEvent(); } return ModbusServer; }()); exports.ModbusServer = ModbusServer; //# sourceMappingURL=modbus-server.js.map