com.eveningoutpost.dexdrip.G5Model.SensorTxMessage Java Examples

The following examples show how to use com.eveningoutpost.dexdrip.G5Model.SensorTxMessage. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source Project: xDrip-Experimental   Author: StephenBlackWasAlreadyTaken   File: G5CollectionService.java    License: GNU General Public License v3.0 5 votes vote down vote up
public void getSensorData() {
    android.util.Log.i(TAG, "Request Sensor Data");
    mGatt.setCharacteristicNotification(controlCharacteristic, true);
    BluetoothGattDescriptor descriptor = controlCharacteristic.getDescriptor(BluetoothServices.CharacteristicUpdateNotification);
    descriptor.setValue(BluetoothGattDescriptor.ENABLE_INDICATION_VALUE);
    SensorTxMessage sensorTx = new SensorTxMessage();
    controlCharacteristic.setValue(sensorTx.byteSequence);
    mGatt.writeDescriptor(descriptor);
}