Pummpcomm v2.5.1 Pummpcomm.Session.Exchange.ReadCarbRatios View Source
Read open intervals for carb ratios throughout the day
Link to this section Summary
Functions
Decodes Pummpcomm.Session.Response.t
to schedule of Pummpcomm.Insulin.carbohydrates_per_unit
ratio for each
open interval at start
Makes Pummpcomm.Session.Command.t
to read carb ratios from pump with pump_serial
Link to this section Functions
Link to this function
decode(response, model_number)
View Source
decode(Pummpcomm.Session.Response.t, Pummpcomm.PumpModel.pump_model) :: {:ok, %{units: Pummpcomm.Carbohydrates.units, schedule: [%{ratio: Pummpcomm.Insulin.carbohydrates_per_unit, start: NaiveDateTime.t}]}}
Decodes Pummpcomm.Session.Response.t
to schedule of Pummpcomm.Insulin.carbohydrates_per_unit
ratio for each
open interval at start
.
Makes Pummpcomm.Session.Command.t
to read carb ratios from pump with pump_serial