Pummpcomm v2.5.1 Pummpcomm.Session.Exchange.ReadBatteryStatus View Source

Read battery indicator and voltage

Link to this section Summary

Types

  • :normal - battery voltage is normal.
  • :low - battery voltage is low. Replace battery soon

Battery voltage. Resolution in 100th of a volt

Functions

Decode battery indicator and voltage from Pummpcomm.Session.Response to make/1 Pummpcomm.Session.Command

Makes Pummpcomm.Session.Command.t to read battry status from pump with pump_serial

Link to this section Types

Link to this type indicator() View Source
indicator() :: :low | :normal
  • :normal - battery voltage is normal.
  • :low - battery voltage is low. Replace battery soon.
Link to this type voltage() View Source
voltage() :: float

Battery voltage. Resolution in 100th of a volt.

Link to this section Functions

Link to this function decode(response) View Source
decode(Pummpcomm.Session.Response.t) :: {:ok, %{indicator: indicator, voltage: voltage}}

Decode battery indicator and voltage from Pummpcomm.Session.Response to make/1 Pummpcomm.Session.Command.

Makes Pummpcomm.Session.Command.t to read battry status from pump with pump_serial