Constants.kt 3.12 KB
Newer Older
Andreas Schildbach's avatar
Andreas Schildbach committed
1 2 3
/*
 * Copyright by the original author or authors.
 *
4 5 6 7 8 9
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
Andreas Schildbach's avatar
Andreas Schildbach committed
10
 *
11 12
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
Andreas Schildbach's avatar
Andreas Schildbach committed
13
 *
14 15 16 17 18 19 20
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
Andreas Schildbach's avatar
Andreas Schildbach committed
21 22 23 24 25 26
 */

package de.ccc.events.badge.card10

import java.util.*

27 28
const val CARD10_BLUETOOTH_MAC_PREFIX = "CA:4D:10"

Andreas Schildbach's avatar
Andreas Schildbach committed
29 30 31
val GENERIC_ACCESS_SERVICE_UUID = UUID.fromString("00001800-0000-1000-8000-00805f9b34fb")
val DEVICE_NAME_CHARACTERISTIC_UUID = UUID.fromString("00002a00-0000-1000-8000-00805f9b34fb")

genofire's avatar
genofire committed
32 33 34 35 36 37
// Card10 File SVC
val FILE_SERVICE_UUID = UUID.fromString("42230100-2342-2342-2342-234223422342")
val FILE_TX_UUID = UUID.fromString("42230101-2342-2342-2342-234223422342")
val FILE_RX_UUID = UUID.fromString("42230102-2342-2342-2342-234223422342")

// Card10 SVC
genofire's avatar
genofire committed
38
val CARD10_SERVICE_UUID = UUID.fromString("42230200-2342-2342-2342-234223422342")
genofire's avatar
genofire committed
39 40
val TIME_CHARACTERISTIC_UUID = UUID.fromString("42230201-2342-2342-2342-234223422342")

genofire's avatar
genofire committed
41 42
val VIBRA_CHARACTERISTIC_UUID = UUID.fromString("4223020f-2342-2342-2342-234223422342")
val ROCKETS_CHARACTERISTIC_UUID = UUID.fromString("42230210-2342-2342-2342-234223422342")
genofire's avatar
genofire committed
43 44 45 46 47 48 49 50 51
val BG_LED_BUTTON_LEFT_CHARACTERISTIC_UUID = UUID.fromString("42230211-2342-2342-2342-234223422342")
val BG_LED_BUTTON_RIGHT_CHARACTERISTIC_UUID = UUID.fromString("42230212-2342-2342-2342-234223422342")
val BG_LED_TOP_RIGHT_CHARACTERISTIC_UUID = UUID.fromString("42230213-2342-2342-2342-234223422342")
val BG_LED_TOP_LEFT_CHARACTERISTIC_UUID = UUID.fromString("42230214-2342-2342-2342-234223422342")
val DIM_BOTTOM_CHARACTERISTIC_UUID = UUID.fromString("42230215-2342-2342-2342-234223422342")
val DIM_TOP_CHARACTERISTIC_UUID = UUID.fromString("42230216-2342-2342-2342-234223422342")
val LEDS_POWERSAFE_CHARACTERISTIC_UUID = UUID.fromString("42230217-2342-2342-2342-234223422342")
val FLASHLIGHT_CHARACTERISTIC_UUID = UUID.fromString("42230218-2342-2342-2342-234223422342")
val PERSONAL_STATE_CHARACTERISTIC_UUID = UUID.fromString("42230219-2342-2342-2342-234223422342")
52
val LEDS_ABOVE_CHARACTERISTIC_UUID = UUID.fromString("42230220-2342-2342-2342-234223422342")
53

genofire's avatar
genofire committed
54
val LIGHT_SENSOR_CHARACTERISTIC_UUID = UUID.fromString("422302f0-2342-2342-2342-234223422342")
55

56
const val UPDATE_CLOCK_FREQUENCY_MINS = 5
57 58

const val HATCHERY_BASE_URL = "https://badge.team"