Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
BLEService.cxx
1
29
30namespace openlcb
31{
32
33// 0ff45220-84a9-4daf-83e7-da4c828d1851
35{
36 0x51, 0x18, 0x8D, 0x82, 0x4C, 0xDA,
37 0xE7, 0x83,
38 0xAF, 0x4D,
39 0xA9, 0x84,
40 0x20, 0x52, 0xF4, 0x0F,
41};
42
43// b029e1ba-47bc-4d8a-a28e-fbe167fc06cb
44const uint8_t BLEService::GATT_CHAR_UUID_DATA_IN[16] =
45{
46 0xCB, 0x06, 0xfC, 0x67, 0xE1, 0xFB,
47 0x8E, 0xA2,
48 0x8A, 0x4D,
49 0xBC, 0x47,
50 0xBA, 0xE1, 0x29, 0xB0,
51};
52
53// c4fed917-55d9-485d-bf30-2eb3c095a90f
55{
56 0x0F, 0xA9, 0x95, 0xC0, 0xB3, 0x2E,
57 0x30, 0xBF,
58 0x5D, 0x48,
59 0xD9, 0x55,
60 0x17, 0xD9, 0xFE, 0xC4,
61};
62
63uint8_t BLEService::dataIn_[200];
64uint8_t BLEService::dataOut_[200];
65uint8_t BLEService::dataInCCCD_[2] = {0x00, 0x00};
66uint8_t BLEService::dataOutCCCD_[2] = {0x00, 0x00};
67
68
69} // openlcb
static const uint8_t GATT_CHAR_UUID_DATA_OUT[16]
OpenLCB GATT data out characterisitic UUID.
static const uint8_t GATT_SERVICE_UUID_OPENLCB[16]
OpenLCB GATT service UUID.
static uint8_t dataOutCCCD_[2]
configuration descriptor for output
static uint8_t dataOut_[200]
data outgoing from the server
static uint8_t dataIn_[200]
data incoming to the server
static uint8_t dataInCCCD_[2]
configuration descriptor for input
static const uint8_t GATT_CHAR_UUID_DATA_IN[16]
OpenLCB GATT data in characterisitic UUID.