View Source Cantastic.OBD2.Parameter (Cantastic v1.0.1)
Cantastic.OBD2.Parameter is a Struct used to represent one CAN OBD2 parameter.
Each received Cantastic.OBD2.Response contains a list of :parameters
The attributes are the following:
:nameThe paramter's name, as defined in your YAML file.:idThe paramter's, as defined in your YAML file.:request_nameThe OBD2 request's name, as defined in your YAML file.:raw_valueThe raw value received on the CAN network.:unitThe unit defined in your YAML file (String).:kindThe kind defined in your YAML file, one off::decimal:integer
Summary
Functions
Returns a String representation of the parameter, used for debugging.
Example
iex> Cantastic.OBD2.Parameter.to_string(parameter)
"[OBD2 Parameter] my_request_name.parameter_name = 12"