View Source PorscheConnEx.Struct.Overview.TirePressure (porsche_conn_ex v0.1.0)

Structure detailing the pressure and status of a single tire.

Fields

  • current (Pressure or nil) — the current tire pressure
  • optimal (Pressure or nil) — the optimal tire pressure
  • difference (Pressure or nil) - the difference between the above
  • status (atom) — the overall tire pressure status
    • TODO: I have not seen what value is returned when pressure is correct.
    • :divergent if the current pressure deviates from the optimal pressure.
    • nil if tire pressure data is not available.

The Porsche tire pressure monitoring system requires that the vehicle be moving. When the vehicle is parked and does not have recent tire pressure data, all of the above will be nil.

Summary

Types

@type status() :: :divergent
@type t() :: %PorscheConnEx.Struct.Overview.TirePressure{
  current: PorscheConnEx.Struct.Unit.Pressure.t() | nil,
  difference: PorscheConnEx.Struct.Unit.Pressure.t() | nil,
  optimal: PorscheConnEx.Struct.Unit.Pressure.t() | nil,
  status: status() | nil
}