summaryrefslogtreecommitdiff
path: root/app/src/main/java/no/topi/fiken/display/BtCallback.java
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2014-12-06 19:25:51 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2014-12-06 19:25:51 +0100
commit76b17543bee2c38995fca07e21d5b271eddb7369 (patch)
tree7e3e8067a8327ffc5ab6ddca09da0989fd0db0f2 /app/src/main/java/no/topi/fiken/display/BtCallback.java
parentbb59449fbcbb46ba018313c51150924e7aec3be0 (diff)
downloadfiken-display-android-76b17543bee2c38995fca07e21d5b271eddb7369.tar.gz
fiken-display-android-76b17543bee2c38995fca07e21d5b271eddb7369.tar.bz2
fiken-display-android-76b17543bee2c38995fca07e21d5b271eddb7369.tar.xz
fiken-display-android-76b17543bee2c38995fca07e21d5b271eddb7369.zip
o Moving out the executor so it becomes its own class.HEADmaster
o Adding seek bars to each gauge. Sending updates to the device.
Diffstat (limited to 'app/src/main/java/no/topi/fiken/display/BtCallback.java')
-rw-r--r--app/src/main/java/no/topi/fiken/display/BtCallback.java49
1 files changed, 49 insertions, 0 deletions
diff --git a/app/src/main/java/no/topi/fiken/display/BtCallback.java b/app/src/main/java/no/topi/fiken/display/BtCallback.java
new file mode 100644
index 0000000..f637bd9
--- /dev/null
+++ b/app/src/main/java/no/topi/fiken/display/BtCallback.java
@@ -0,0 +1,49 @@
+package no.topi.fiken.display;
+
+import android.bluetooth.BluetoothGatt;
+import android.bluetooth.BluetoothGattCharacteristic;
+import android.bluetooth.BluetoothGattDescriptor;
+
+class BtCallback {
+ public final String name;
+
+ BtCallback(String name) {
+ this.name = name;
+ }
+
+ public boolean onConnectionStateChange(BluetoothGatt gatt, int newState) {
+ throw new NotOverriddenException();
+ }
+
+ public boolean onServicesDiscovered(BluetoothGatt gatt) {
+ throw new NotOverriddenException();
+ }
+
+ public boolean onCharacteristicRead(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic) {
+ throw new NotOverriddenException();
+ }
+
+ public boolean onCharacteristicWrite(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic) {
+ throw new NotOverriddenException();
+ }
+
+ public boolean onCharacteristicChanged(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic) {
+ throw new NotOverriddenException();
+ }
+
+ public boolean onDescriptorRead(BluetoothGatt gatt, BluetoothGattDescriptor descriptor) {
+ throw new NotOverriddenException();
+ }
+
+ public boolean onDescriptorWrite(BluetoothGatt gatt, BluetoothGattDescriptor descriptor) {
+ throw new NotOverriddenException();
+ }
+
+ public boolean onReliableWriteCompleted(BluetoothGatt gatt) {
+ throw new NotOverriddenException();
+ }
+
+ public boolean onReadRemoteRssi(BluetoothGatt gatt, int rssi) {
+ throw new NotOverriddenException();
+ }
+}