Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

onComplete

onComplete: TypedEvent<ModbusCommand<any>> = new TypedEvent<ModbusCommand<any>>()

Fires on either success or failure, with the response bytes. Mainly used by the server to send a response.

onFailure

onFailure: TypedEvent<ModbusCommand<any>> = new TypedEvent<ModbusCommand<any>>()

Fires on a call of the fail method.

onSuccess

onSuccess: TypedEvent<ModbusCommand<any>> = new TypedEvent<ModbusCommand<any>>()

Fires on a call of the success method.

Accessors

coilLength

coilLength:

coilStartAddress

coilStartAddress:

coilStatuses

coilStatuses:

coilStatusesAsCoilStatusArray

coilStatusesAsCoilStatusArray:

functionCode

functionCode:

Modbus function code

responsePacket

responsePacket:

This function will give you the response packet bytes that will be sent on the emitting server. Before calling this function, the success or fail method must be called in order to set the response.

throws

ModbusCommandError if success or fail hasn't been called yet

unitId

unitId:

If RTU, unitId is equivalent to slaveId

Methods

fail

success

  • success(): void
  • Set success on this command to return a valid response to the emitting server.

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc