diff options
Diffstat (limited to 'app/src/main/java/io/trygvis/bluetooth')
-rw-r--r-- | app/src/main/java/io/trygvis/bluetooth/TrygvisIoUuids.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/src/main/java/io/trygvis/bluetooth/TrygvisIoUuids.java b/app/src/main/java/io/trygvis/bluetooth/TrygvisIoUuids.java new file mode 100644 index 0000000..ec19b2a --- /dev/null +++ b/app/src/main/java/io/trygvis/bluetooth/TrygvisIoUuids.java @@ -0,0 +1,22 @@ +package io.trygvis.bluetooth; + +import java.util.UUID; + +public interface TrygvisIoUuids { + String TRYGVIS_IO_BASE_UUID = "32D0xxxx-035D-59C5-70D3-BC8E4A1FD83F"; + + interface Services { + UUID STATUS_PANEL = UUID.fromString(TRYGVIS_IO_BASE_UUID.replace("xxxx", "0001")); + UUID SOIL_MOISTURE_SERVICE = UUID.fromString(TRYGVIS_IO_BASE_UUID.replace("xxxx", "0010")); + } + + interface Characteristics { + UUID GAUGE_DATA = UUID.fromString(TRYGVIS_IO_BASE_UUID.replace("xxxx", "0002")); + UUID GAUGE_CTRL = UUID.fromString(TRYGVIS_IO_BASE_UUID.replace("xxxx", "0004")); + UUID LED = UUID.fromString(TRYGVIS_IO_BASE_UUID.replace("xxxx", "0003")); + + UUID SOIL_MOISTURE = UUID.fromString(TRYGVIS_IO_BASE_UUID.replace("xxxx", "0011")); + } + + UUID CLIENT_CHARACTERISTIC_CONFIG = UUID.fromString("00002902-0000-1000-8000-00805f9b34fb"); +} |