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 File: G5CollectionService.java From xDrip-Experimental with GNU General Public License v3.0 | 5 votes |
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); }