-
- All Implemented Interfaces:
-
no.nordicsemi.android.ble.common.profile.cgm.CGMTypes,no.nordicsemi.android.ble.common.profile.glucose.GlucoseTypes
public interface CGMFeatureCallback implements CGMTypes
-
-
Method Summary
Modifier and Type Method Description abstract voidonContinuousGlucoseMonitorFeaturesReceived(@NonNull() BluetoothDevice device, @NonNull() CGMTypes.CGMFeatures features, int type, int sampleLocation, boolean secured)Callback called when Continuous Glucose Monitor Feature value was received. voidonContinuousGlucoseMonitorFeaturesReceivedWithCrcError(@NonNull() BluetoothDevice device, @NonNull() Data data)Callback called when a CGM Feature packet with E2E field was received but the CRC checkhas failed. -
-
Method Detail
-
onContinuousGlucoseMonitorFeaturesReceived
abstract void onContinuousGlucoseMonitorFeaturesReceived(@NonNull() BluetoothDevice device, @NonNull() CGMTypes.CGMFeatures features, int type, int sampleLocation, boolean secured)
Callback called when Continuous Glucose Monitor Feature value was received.
If the E2E CRC field was present in the CGM packet, the data has been verified against it.If CRC check has failed, the onContinuousGlucoseMonitorFeaturesReceivedWithCrcError will be called instead.
- Parameters:
device- the target device.features- the features supported by the target device.type- the sample type, see TYPE_* constants.sampleLocation- the sample location, see SAMPLE_LOCATION_* constants.secured- true, if the value received was secured with E2E-CRC value and theCRC matched the packet.
-
onContinuousGlucoseMonitorFeaturesReceivedWithCrcError
void onContinuousGlucoseMonitorFeaturesReceivedWithCrcError(@NonNull() BluetoothDevice device, @NonNull() Data data)
Callback called when a CGM Feature packet with E2E field was received but the CRC checkhas failed.
- Parameters:
device- the target device.data- the CGM Feature packet data that was received, including the CRC field.
-
-
-
-