Class: OBDIIPIDServ

OBDIIPIDServ

Provides methods and properties for responding to PID request. Mostly used for simulating ECU that are not available.


Members


enabled :bool

Enables or disables the ECU function of the PID. If enabled, read requests on OBD-II for this PID will be answered using the value assigned.

Type:
  • bool
Since:
  • 0.5 (WAT 2.0)
Default Value:
  • false

readOnly :bool

Gets/sets whether the PID can be written using OBD-II. The PID must be enabled and this property must false for writes to be successful.

Type:
  • bool
Since:
  • 0.6 (WAT 2.2)
Default Value:
  • true

value :string|number|bool

The data that will be sent out when this PID is requested

Type:
  • string | number | bool
Since:
  • 0.5 (WAT 2.0)

Events


valueChanged

Indicates that the value of the PID has changed, either because the program wrote the value property, or because the PID is writable and the PID was written using OBD.

Since:
  • 0.6 (WAT 2.2)