-
- All Implemented Interfaces:
-
no.nordicsemi.android.ble.common.profile.cgm.CGMTypes,no.nordicsemi.android.ble.common.profile.glucose.GlucoseTypes
public interface CGMStatusCallback implements CGMTypes
-
-
Method Summary
Modifier and Type Method Description abstract voidonContinuousGlucoseMonitorStatusChanged(@NonNull() BluetoothDevice device, @NonNull() CGMTypes.CGMStatus status, @IntRange(from = 0, to = 65535) int timeOffset, boolean secured)Callback called whenever the CGM Status characteristic was read.. voidonContinuousGlucoseMonitorStatusReceivedWithCrcError(@NonNull() BluetoothDevice device, @NonNull() Data data)Callback called when a CGM packet with E2E field was received but the CRC check has failed. -
-
Method Detail
-
onContinuousGlucoseMonitorStatusChanged
abstract void onContinuousGlucoseMonitorStatusChanged(@NonNull() BluetoothDevice device, @NonNull() CGMTypes.CGMStatus status, @IntRange(from = 0, to = 65535) int timeOffset, boolean secured)
Callback called whenever the CGM Status 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 onContinuousGlucoseMonitorStatusReceivedWithCrcError will be called instead.
- Parameters:
device- the target device.status- the status received.timeOffset- time offset in minutes since Session Start Time.secured- true if the packet was sent with E2E-CRC value that was verified to matchthe packet, false if the packet didn't contain CRC field.
-
onContinuousGlucoseMonitorStatusReceivedWithCrcError
void onContinuousGlucoseMonitorStatusReceivedWithCrcError(@NonNull() BluetoothDevice device, @NonNull() Data data)
Callback called when a CGM packet with E2E field was received but the CRC check has failed.
- Parameters:
device- the target device.data- the CGM packet data that was received, including the CRC field.
-
-
-
-