Package 

Interface CGMSpecificOpsControlPointCallback

  • All Implemented Interfaces:
    no.nordicsemi.android.ble.common.profile.cgm.CGMTypes , no.nordicsemi.android.ble.common.profile.glucose.GlucoseTypes

    
    public interface CGMSpecificOpsControlPointCallback
     implements CGMTypes
                        
    • Method Detail

      • onCGMSpecificOpsOperationCompleted

         abstract void onCGMSpecificOpsOperationCompleted(@NonNull() BluetoothDevice device, int requestCode, boolean secured)

        Callback called when a CGM Specific Ops request has finished successfully.

        Parameters:
        device - the target device.
        requestCode - the request code that has completed.
        secured - true, if the value received was secured with E2E-CRC value and theCRC matched the packet.
      • onCGMSpecificOpsOperationError

         abstract void onCGMSpecificOpsOperationError(@NonNull() BluetoothDevice device, int requestCode, int errorCode, boolean secured)

        Callback called when a CGM Specific Ops request has failed.

        Parameters:
        device - the target device.
        requestCode - the request code that has completed with an error.One of CGM_OP_CODE_* constants, or other if such was requested.
        errorCode - the received error code, see CGM_ERROR_* constants.
        secured - true, if the value received was secured with E2E-CRC value and theCRC matched the packet.
      • onCGMSpecificOpsResponseReceivedWithCrcError

         void onCGMSpecificOpsResponseReceivedWithCrcError(@NonNull() BluetoothDevice device, @NonNull() Data data)

        Callback called when a CGM Specific Ops response was received with and incorrect E2E CRC.

        Parameters:
        device - the target device.
        data - the CGM Specific Ops packet data that was received, including the CRC field.
      • onContinuousGlucoseCommunicationIntervalReceived

         void onContinuousGlucoseCommunicationIntervalReceived(@NonNull() BluetoothDevice device, @IntRange(from = 0) int interval, boolean secured)

        Callback called as a result of 'Fet CGM communication interval' procedure.

        Parameters:
        device - the target device.
        interval - the time interval in minutes after which the CGM Measurement is sent tothe client.
        secured - true, if the value received was secured with E2E-CRC value andthe CRC matched the packet.
      • onContinuousGlucoseCalibrationValueReceived

         void onContinuousGlucoseCalibrationValueReceived(@NonNull() BluetoothDevice device, @FloatRange(from = 0) float glucoseConcentrationOfCalibration, @IntRange(from = 0, to = 65535) int calibrationTime, @IntRange(from = 0, to = 65535) int nextCalibrationTime, int type, int sampleLocation, @IntRange(from = 0, to = 65535) int calibrationDataRecordNumber, @NonNull() CGMTypes.CGMCalibrationStatus status, boolean secured)

        Callback called after a calibration value is received from the server.

        Parameters:
        device - the target device.
        glucoseConcentrationOfCalibration - the glucose concentration value is transmitted in mg/dL.
        calibrationTime - the time the calibration value has been measured asrelative offset to the Session Start Time in minutes.
        nextCalibrationTime - the relative offset to the Session Start Time when thenext calibration is required.
        type - the sample type, see TYPE_* constants.
        sampleLocation - the sample location, see SAMPLE_LOCATION_* constants.
        calibrationDataRecordNumber - a unique number of the calibration record.A value of 0 represents no calibration value is stored.
        status - the status of the calibration procedure of the Serverrelated to the Calibration Data Record.
        secured - true, if the value received was secured with E2E-CRCvalue and the CRC matched the packet.
      • onContinuousGlucosePatientHighAlertReceived

         void onContinuousGlucosePatientHighAlertReceived(@NonNull() BluetoothDevice device, @FloatRange(from = 0) float alertLevel, boolean secured)

        Callback called when the Patient High Alert response was received.

        Parameters:
        device - the target device.
        alertLevel - a level of glucose concentration in mg/dL to trigger the Patient High Alertin the Sensor Status Annunciation field.
        secured - true, if the value received was secured with E2E-CRCvalue and the CRC matched the packet.
      • onContinuousGlucosePatientLowAlertReceived

         void onContinuousGlucosePatientLowAlertReceived(@NonNull() BluetoothDevice device, @FloatRange(from = 0) float alertLevel, boolean secured)

        Callback called when the Patient Low Alert response was received.

        Parameters:
        device - the target device.
        alertLevel - a level of glucose concentration in mg/dL to trigger the Patient Low Alertin the Sensor Status Annunciation field.
        secured - true, if the value received was secured with E2E-CRCvalue and the CRC matched the packet.
      • onContinuousGlucoseHypoAlertReceived

         void onContinuousGlucoseHypoAlertReceived(@NonNull() BluetoothDevice device, @FloatRange(from = 0) float alertLevel, boolean secured)

        Callback called when the Hypo Alert response was received.

        Parameters:
        device - the target device.
        alertLevel - a level of glucose concentration in mg/dL to trigger the Hypo Alertin the Sensor Status Annunciation field.
        secured - true, if the value received was secured with E2E-CRCvalue and the CRC matched the packet.
      • onContinuousGlucoseHyperAlertReceived

         void onContinuousGlucoseHyperAlertReceived(@NonNull() BluetoothDevice device, @FloatRange(from = 0) float alertLevel, boolean secured)

        Callback called when the Hyper Alert response was received.

        Parameters:
        device - the target device.
        alertLevel - a level of glucose concentration in mg/dL to trigger the Hyper Alertin the Sensor Status Annunciation field.
        secured - true, if the value received was secured with E2E-CRCvalue and the CRC matched the packet.
      • onContinuousGlucoseRateOfDecreaseAlertReceived

         void onContinuousGlucoseRateOfDecreaseAlertReceived(@NonNull() BluetoothDevice device, @FloatRange(from = 0) float alertLevel, boolean secured)

        Callback called when the Rate Of Decrease Alert response was received.

        Parameters:
        device - the target device.
        alertLevel - a rate of glucose concentration change in mg/dL/min to trigger theRate Of Decrease Alert in the Sensor Status Annunciation field.
        secured - true, if the value received was secured with E2E-CRCvalue and the CRC matched the packet.
      • onContinuousGlucoseRateOfIncreaseAlertReceived

         void onContinuousGlucoseRateOfIncreaseAlertReceived(@NonNull() BluetoothDevice device, @FloatRange(from = 0) float alertLevel, boolean secured)

        Callback called when the Hyper Alert response was received.

        Parameters:
        device - the target device.
        alertLevel - a rate of glucose concentration change in mg/dL/min to trigger theRate Of Increase Alert in the Sensor Status Annunciation field.
        secured - true, if the value received was secured with E2E-CRCvalue and the CRC matched the packet.