Pummpcomm v2.5.1 Pummpcomm.Session.Exchange.ReadBgTargets View Source
Reads blood glucose targets for throughout the day.
Link to this section Summary
Functions
Decodes Pummpcomm.Session.Response.t
to units
the blood glucose targets are in and the high and low target for
each open interval starting at start
Makes Pummpcomm.Session.Command.t
to read the target low and high blood glucose throughout the day
Link to this section Functions
Link to this function
decode(response)
View Source
decode(Pummpcomm.Session.Response.t) :: {:ok, %{targets: [%{bg_high: Pummpcomm.BloodGlucose.blood_glucose, bg_low: Pummpcomm.BloodGlucose.blood_glucose, start: NaiveDateTime.t}], units: String.t}}
Decodes Pummpcomm.Session.Response.t
to units
the blood glucose targets are in and the high and low target for
each open interval starting at start
.
Makes Pummpcomm.Session.Command.t
to read the target low and high blood glucose throughout the day.