1
1
import Toybox .BluetoothLowEnergy ;
2
2
import Toybox .Lang ;
3
3
4
- // ! BLE profiles for Forumslader v5/v6
5
- const
6
- // ! Service UUIDs
7
- FL5_SERVICE as Uuid = BluetoothLowEnergy .stringToUuid (" 0000ffe0-0000-1000-8000-00805f9b34fb" ),
8
- FL6_SERVICE as Uuid = BluetoothLowEnergy .stringToUuid (" 6e40ffe2-b5a3-f393-e0a9-e50e24dcca9e" ),
4
+ // ! BLE profiles for Forumslader v5/v6
5
+ const
6
+ // ! Service UUIDs
7
+ FL5_SERVICE as Uuid = BluetoothLowEnergy .stringToUuid (" 0000ffe0-0000-1000-8000-00805f9b34fb" ),
8
+ FL6_SERVICE as Uuid = BluetoothLowEnergy .stringToUuid (" 6e40ffe2-b5a3-f393-e0a9-e50e24dcca9e" ),
9
9
10
- // ! Characteristic UUIDs
11
- FL5_RXTX_CHARACTERISTIC as Uuid = BluetoothLowEnergy .stringToUuid (" 0000ef38-0000-1000-8000-00805f9b34fb" ),
12
- FL6_RX_CHARACTERISTIC as Uuid = BluetoothLowEnergy .stringToUuid (" 6e40ef38-b5a3-f393-e0a9-e50e24dcca9e" ),
13
- FL6_TX_CHARACTERISTIC as Uuid = BluetoothLowEnergy .stringToUuid (" 6e40ef39-b5a3-f393-e0a9-e50e24dcca9e" ),
14
-
15
- // ! profile v5
16
- FL5_profile = {
17
- :uuid => FL5_SERVICE ,
18
- :characteristics => [{
19
- :uuid => FL5_RXTX_CHARACTERISTIC ,
20
- :descriptors => [BluetoothLowEnergy .cccdUuid ()]
21
- }]
22
- },
10
+ // ! Characteristic UUIDs
11
+ FL5_RXTX_CHARACTERISTIC as Uuid = BluetoothLowEnergy .stringToUuid (" 0000ef38-0000-1000-8000-00805f9b34fb" ),
12
+ FL6_RX_CHARACTERISTIC as Uuid = BluetoothLowEnergy .stringToUuid (" 6e40ef38-b5a3-f393-e0a9-e50e24dcca9e" ),
13
+ FL6_TX_CHARACTERISTIC as Uuid = BluetoothLowEnergy .stringToUuid (" 6e40ef39-b5a3-f393-e0a9-e50e24dcca9e" ),
23
14
24
- // ! profile v6
25
- FL6_profile = {
26
- :uuid => FL6_SERVICE ,
27
- :characteristics => [{
28
- :uuid => FL6_RX_CHARACTERISTIC ,
29
- :descriptors => [BluetoothLowEnergy .cccdUuid ()]
30
- }, {
31
- :uuid => FL6_TX_CHARACTERISTIC ,
32
- :descriptors => [BluetoothLowEnergy .cccdUuid ()]
33
- }]
34
- };
15
+ // ! profile v5
16
+ FL5_profile = {
17
+ :uuid => FL5_SERVICE ,
18
+ :characteristics => [{
19
+ :uuid => FL5_RXTX_CHARACTERISTIC ,
20
+ :descriptors => [BluetoothLowEnergy .cccdUuid ()]
21
+ }]
22
+ },
23
+
24
+ // ! profile v6
25
+ FL6_profile = {
26
+ :uuid => FL6_SERVICE ,
27
+ :characteristics => [{
28
+ :uuid => FL6_RX_CHARACTERISTIC ,
29
+ :descriptors => [BluetoothLowEnergy .cccdUuid ()]
30
+ }, {
31
+ :uuid => FL6_TX_CHARACTERISTIC ,
32
+ :descriptors => [BluetoothLowEnergy .cccdUuid ()]
33
+ }]
34
+ };
0 commit comments