Commit 745aa095 authored by Stefan Zabka's avatar Stefan Zabka
Browse files

changed write type

parent 8ca0e78b
...@@ -51,11 +51,11 @@ val FLASHLIGHT_CHARACTERISTIC_UUID = UUID.fromString("42230218-2342-2342-2342-23 ...@@ -51,11 +51,11 @@ val FLASHLIGHT_CHARACTERISTIC_UUID = UUID.fromString("42230218-2342-2342-2342-23
val PERSONAL_STATE_CHARACTERISTIC_UUID = UUID.fromString("42230219-2342-2342-2342-234223422342") val PERSONAL_STATE_CHARACTERISTIC_UUID = UUID.fromString("42230219-2342-2342-2342-234223422342")
enum class PersonalState(val v: Byte) { enum class PersonalState(val v: Byte) {
NONE(0x0000), NONE(0x0000),
NO_CONTACT(0x0100.toByte()), NO_CONTACT(0x0100.toByte()),
CHAOS(0x0200.toByte()), CHAOS(0x0200.toByte()),
COMMUNICATION(0x0300.toByte()), COMMUNICATION(0x0300.toByte()),
CAMP(0x0400.toByte()) CAMP(0x0400.toByte())
} }
val LEDS_ABOVE_CHARACTERISTIC_UUID = UUID.fromString("42230220-2342-2342-2342-234223422342") val LEDS_ABOVE_CHARACTERISTIC_UUID = UUID.fromString("42230220-2342-2342-2342-234223422342")
......
...@@ -41,8 +41,7 @@ class Card10Service( ...@@ -41,8 +41,7 @@ class Card10Service(
timeCharacteristic.writeType = BluetoothGattCharacteristic.WRITE_TYPE_NO_RESPONSE timeCharacteristic.writeType = BluetoothGattCharacteristic.WRITE_TYPE_NO_RESPONSE
rocketsCharacteristic.writeType = BluetoothGattCharacteristic.WRITE_TYPE_NO_RESPONSE rocketsCharacteristic.writeType = BluetoothGattCharacteristic.WRITE_TYPE_NO_RESPONSE
ledsAboveCharacteristic.writeType = BluetoothGattCharacteristic.WRITE_TYPE_NO_RESPONSE ledsAboveCharacteristic.writeType = BluetoothGattCharacteristic.WRITE_TYPE_NO_RESPONSE
personalStateCharacteristic.writeType = BluetoothGattCharacteristic.WRITE_TYPE_NO_RESPONSE personalStateCharacteristic.writeType = BluetoothGattCharacteristic.WRITE_TYPE_DEFAULT
} }
fun setTime() { fun setTime() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment