28#ifndef _OPENLCB_BLESERVICE_HXX_
29#define _OPENLCB_BLESERVICE_HXX_
@ UUID_LEN_128
length in bytes of a 128-bit UUID
@ UUID_LEN_16
length in bytes of a 16-bit UUID
static const uint8_t CHAR_PROP_READ_NOTIFY_ACK[1]
Characteristic read/write/notify property.
static const uint8_t CHAR_PROP_WRITE[1]
Characteristic read/write/notify property.
@ READ
attribute is readable
@ WRITE
attribute is writable
static const uint8_t PRIMARY_SERVICE_UUID[2]
Primary service UUID.
static const uint8_t CHAR_CLIENT_CONFIG_UUID[2]
Characterisitic Client Config Descriptor (CCCD) UUID.
static const uint8_t CHAR_DECLARATOIN_UUID[2]
Characteristic UUID.
BLE service definition interface.
OpenLCB BLE service definition.
static constexpr GATTAttribute GATT_ATTRIBUTES[]
GATT Attribute table properties for this service.
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.
static constexpr size_t size()
Get the size in number of elements (Attributes).
GATTAttributeIndexs
The entry indexes for the GATT_ATTRIBUTES table.
@ GATT_DATA_IN_DECL_INDEX
GATT data in declaration index.
@ GATT_DATA_IN_CCCD_INDEX
GATT data in CCCD index.
@ GATT_DATA_OUT_CCCD_INDEX
GATT data out CCCD index.
@ GATT_DATA_OUT_VALUE_INDEX
GATT data out value index.
@ GATT_DATA_OUT_DECL_INDEX
GATT data out declaration index.
@ GATT_DATA_IN_VALUE_INDEX
GATT data in value index.
@ GATT_SERVICE_INDEX
GATT Primary Service index.
#define ARRAYSIZE(a)
Returns the number of elements in a statically defined array (of static size)