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

Read the current page_number for CGM pages and page_count back of glucose and isig is available when using Pummpcomm.Session.Exchange.ReadCgmPage.

Link to this section Summary

Types

The number of pages back from the current page_number stored for either glucose or isig. Think of the data as a ring buffer with only page_count number of pages stored, but the overall reported page_number increasing, so there is less chance of page confusion when combine long stretches of pages

The current page number for CGM data

Functions

Decodes the current page_number for CGM pages and page_count back of glucose and isig is available when using Pummpcomm.Session.Exchange.ReadCgmPage

Pummpcomm.Session.Command to get current CGM page from pump with pump_serial

Link to this section Types

Link to this type page_count() View Source
page_count() :: 0..32

The number of pages back from the current page_number stored for either glucose or isig. Think of the data as a ring buffer with only page_count number of pages stored, but the overall reported page_number increasing, so there is less chance of page confusion when combine long stretches of pages.

Link to this type page_number() View Source
page_number() :: non_neg_integer

The current page number for CGM data.

Link to this section Functions

Link to this function decode(response) View Source
decode(Pummpcomm.Session.Response.t) :: {:ok, %{page_number: page_number, glucose: page_count, isig: page_count}}

Decodes the current page_number for CGM pages and page_count back of glucose and isig is available when using Pummpcomm.Session.Exchange.ReadCgmPage.