-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1330c8b
commit 65b0d76
Showing
3 changed files
with
48 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
import Toybox.BluetoothLowEnergy; | ||
import Toybox.Lang; | ||
|
||
//! BLE profiles for Forumslader v5/v6 | ||
const | ||
//! Service UUIDs | ||
FL5_SERVICE as Uuid = BluetoothLowEnergy.stringToUuid("0000ffe0-0000-1000-8000-00805f9b34fb"), | ||
FL6_SERVICE as Uuid = BluetoothLowEnergy.stringToUuid("6e40ffe2-b5a3-f393-e0a9-e50e24dcca9e"), | ||
//! BLE profiles for Forumslader v5/v6 | ||
const | ||
//! Service UUIDs | ||
FL5_SERVICE as Uuid = BluetoothLowEnergy.stringToUuid("0000ffe0-0000-1000-8000-00805f9b34fb"), | ||
FL6_SERVICE as Uuid = BluetoothLowEnergy.stringToUuid("6e40ffe2-b5a3-f393-e0a9-e50e24dcca9e"), | ||
|
||
//! Characteristic UUIDs | ||
FL5_RXTX_CHARACTERISTIC as Uuid = BluetoothLowEnergy.stringToUuid("0000ef38-0000-1000-8000-00805f9b34fb"), | ||
FL6_RX_CHARACTERISTIC as Uuid = BluetoothLowEnergy.stringToUuid("6e40ef38-b5a3-f393-e0a9-e50e24dcca9e"), | ||
FL6_TX_CHARACTERISTIC as Uuid = BluetoothLowEnergy.stringToUuid("6e40ef39-b5a3-f393-e0a9-e50e24dcca9e"), | ||
|
||
//! profile v5 | ||
FL5_profile = { | ||
:uuid => FL5_SERVICE, | ||
:characteristics => [{ | ||
:uuid => FL5_RXTX_CHARACTERISTIC, | ||
:descriptors => [BluetoothLowEnergy.cccdUuid()] | ||
}] | ||
}, | ||
//! Characteristic UUIDs | ||
FL5_RXTX_CHARACTERISTIC as Uuid = BluetoothLowEnergy.stringToUuid("0000ef38-0000-1000-8000-00805f9b34fb"), | ||
FL6_RX_CHARACTERISTIC as Uuid = BluetoothLowEnergy.stringToUuid("6e40ef38-b5a3-f393-e0a9-e50e24dcca9e"), | ||
FL6_TX_CHARACTERISTIC as Uuid = BluetoothLowEnergy.stringToUuid("6e40ef39-b5a3-f393-e0a9-e50e24dcca9e"), | ||
|
||
//! profile v6 | ||
FL6_profile = { | ||
:uuid => FL6_SERVICE, | ||
:characteristics => [{ | ||
:uuid => FL6_RX_CHARACTERISTIC, | ||
:descriptors => [BluetoothLowEnergy.cccdUuid()] | ||
}, { | ||
:uuid => FL6_TX_CHARACTERISTIC, | ||
:descriptors => [BluetoothLowEnergy.cccdUuid()] | ||
}] | ||
}; | ||
//! profile v5 | ||
FL5_profile = { | ||
:uuid => FL5_SERVICE, | ||
:characteristics => [{ | ||
:uuid => FL5_RXTX_CHARACTERISTIC, | ||
:descriptors => [BluetoothLowEnergy.cccdUuid()] | ||
}] | ||
}, | ||
|
||
//! profile v6 | ||
FL6_profile = { | ||
:uuid => FL6_SERVICE, | ||
:characteristics => [{ | ||
:uuid => FL6_RX_CHARACTERISTIC, | ||
:descriptors => [BluetoothLowEnergy.cccdUuid()] | ||
}, { | ||
:uuid => FL6_TX_CHARACTERISTIC, | ||
:descriptors => [BluetoothLowEnergy.cccdUuid()] | ||
}] | ||
}; |