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

Reads status of pump: whether it’s bolusing or suspended.

Link to this section Summary

Functions

Decodes Pummpcomm.Session.Response.t from make/1 Pummpcomm.Session.Command.t to whether pump is currently bolusing or suspended

Makes Pummpcomm.Session.Command.t to check if pump is currently bolusing or suspended

Link to this section Functions

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

Decodes Pummpcomm.Session.Response.t from make/1 Pummpcomm.Session.Command.t to whether pump is currently bolusing or suspended.

Makes Pummpcomm.Session.Command.t to check if pump is currently bolusing or suspended.