implement ble connection and tidy up classes

This commit is contained in:
liamcottle 2025-02-11 21:39:18 +13:00
parent 6a3e522106
commit 8f53e9b849
5 changed files with 301 additions and 175 deletions

View file

@ -3,7 +3,13 @@ class Constants {
static SerialFrameTypes = {
Incoming: 0x3e, // ">"
Outgoing: 0x3c, // "<"
};
}
static Ble = {
ServiceUuid: "6E400001-B5A3-F393-E0A9-E50E24DCCA9E",
CharacteristicUuidRx: "6E400002-B5A3-F393-E0A9-E50E24DCCA9E",
CharacteristicUuidTx: "6E400003-B5A3-F393-E0A9-E50E24DCCA9E",
}
static CommandCodes = {
AppStart: 1,