-
public interface CGMSessionStartTimeCallback
-
-
Method Summary
Modifier and Type Method Description abstract voidonContinuousGlucoseMonitorSessionStartTimeReceived(@NonNull() BluetoothDevice device, @NonNull() Calendar calendar, boolean secured)Callback called whenever the CGM Session Start Time characteristic was read. voidonContinuousGlucoseMonitorSessionStartTimeReceivedWithCrcError(@NonNull() BluetoothDevice device, @NonNull() Data data)Callback called when a CGM Session Start Time packet with E2E field was received but theCRC check has failed. -
-
Method Detail
-
onContinuousGlucoseMonitorSessionStartTimeReceived
abstract void onContinuousGlucoseMonitorSessionStartTimeReceived(@NonNull() BluetoothDevice device, @NonNull() Calendar calendar, boolean secured)
Callback called whenever the CGM Session Start Time characteristic was read.
If the E2E CRC field was present in the CGM packet, the data has been verified against it.If CRC check has failed, the onContinuousGlucoseMonitorSessionStartTimeReceivedWithCrcError will be called instead.
- Parameters:
device- the target device.calendar- the date and time received, as Calendar object.Time zone and DST offset are included in the calendar.secured- true if the packet was sent with E2E-CRC value that was verified tomatch the packet, false if the packet didn't contain CRC field.
-
onContinuousGlucoseMonitorSessionStartTimeReceivedWithCrcError
void onContinuousGlucoseMonitorSessionStartTimeReceivedWithCrcError(@NonNull() BluetoothDevice device, @NonNull() Data data)
Callback called when a CGM Session Start Time packet with E2E field was received but theCRC check has failed.
- Parameters:
device- the target device.data- the CGM Session Start Time packet data that was received, including theCRC field.
-
-
-
-