-
public interface CGMSessionRunTimeCallback
-
-
Method Summary
Modifier and Type Method Description abstract voidonContinuousGlucoseMonitorSessionRunTimeReceived(@NonNull() BluetoothDevice device, @IntRange(from = 0, to = 65535) int sessionRunTime, boolean secured)Callback called whenever the CGM Session Run Time characteristic was read. voidonContinuousGlucoseMonitorSessionRunTimeReceivedWithCrcError(@NonNull() BluetoothDevice device, @NonNull() Data data)Callback called when a CGM Session Run Time packet with E2E field was received but the CRCcheck has failed. -
-
Method Detail
-
onContinuousGlucoseMonitorSessionRunTimeReceived
abstract void onContinuousGlucoseMonitorSessionRunTimeReceived(@NonNull() BluetoothDevice device, @IntRange(from = 0, to = 65535) int sessionRunTime, boolean secured)
Callback called whenever the CGM Session Run 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 onContinuousGlucoseMonitorSessionRunTimeReceivedWithCrcError will be called instead.
- Parameters:
device- the target device.sessionRunTime- the expected run time of the CGM session depending on physiologicaleffects in future devices, in hours.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.
-
onContinuousGlucoseMonitorSessionRunTimeReceivedWithCrcError
void onContinuousGlucoseMonitorSessionRunTimeReceivedWithCrcError(@NonNull() BluetoothDevice device, @NonNull() Data data)
Callback called when a CGM Session Run Time packet with E2E field was received but the CRCcheck has failed.
- Parameters:
device- the target device.data- the CGM Session Run Time packet data that was received, including the CRC field.
-
-
-
-