24#ifndef TEST_DATATYPE02_CPP_
25#define TEST_DATATYPE02_CPP_
132 std::string toString() const noexcept;
141 std::string toString() const noexcept;
165 std::string toString() const noexcept;
173 std::string toString() const noexcept;
334#define CASE_TO_STRING(V) case V: return #V;
336#define SERVICE_TYPE_ENUM(X) \
338 X(HEALTH_THERMOMETER) \
339 X(DEVICE_INFORMATION) \
350#define CHARACTERISTIC_TYPE_ENUM(X) \
353 X(PERIPHERAL_PRIVACY_FLAG) \
354 X(RECONNECTION_ADDRESS) \
355 X(PERIPHERAL_PREFERRED_CONNECTION_PARAMETERS) \
357 X(TEMPERATURE_CELSIUS) \
358 X(TEMPERATURE_FAHRENHEIT) \
359 X(TEMPERATURE_MEASUREMENT) \
360 X(TEMPERATURE_TYPE) \
361 X(INTERMEDIATE_TEMPERATURE) \
362 X(MEASUREMENT_INTERVAL) \
364 X(MODEL_NUMBER_STRING) \
365 X(SERIAL_NUMBER_STRING) \
366 X(FIRMWARE_REVISION_STRING) \
367 X(HARDWARE_REVISION_STRING) \
368 X(SOFTWARE_REVISION_STRING) \
369 X(MANUFACTURER_NAME_STRING) \
370 X(REGULATORY_CERT_DATA_LIST) \
382#define CHARACTERISTIC_PROP_ENUM(X) \
391 X(ReliableWriteExt) \
402#define REQUIREMENT_SPEC_ENUM(X) \
407 X(if_characteristic_supported) \
408 X(if_notify_or_indicate_supported) \
constexpr size_type size() const noexcept
Like std::vector::size().
const_reference at(size_type i) const
Like std::vector::at(size_type), immutable reference.
#define JAU_TYPENAME_CUE_ALL(A)
__pack(...): Produces MSVC, clang and gcc compatible lead-in and -out macros.
std::string toString() const noexcept
const GattCharacteristicProperty property
const GattRequirementSpec requirement
jau::darray< GattCharacteristicPropertySpec > propertySpec
Aggregated in PropertySpecIdx order.
GattRequirementSpec requirement
GattClientCharacteristicConfigSpec clientConfig
GattCharacteristicType characteristic
std::string toString() const noexcept
GattCharacteristicPropertySpec read
GattRequirementSpec requirement
std::string toString() const noexcept
GattCharacteristicPropertySpec writeWithAck
std::string toString() const noexcept
jau::darray< GattCharacteristicSpec > characteristics
#define CASE_TO_STRING(V)
#define CHARACTERISTIC_TYPE_ENUM(X)
@ GENERIC_ACCESS
This service contains generic information about the device.
@ BATTERY_SERVICE
This service exposes the state of a battery within a device.
@ LINK_LOSS
The service defines behavior on the device when a link is lost between two devices.
@ IMMEDIATE_ALERT
This service exposes a control point to change the peripheral alert behavior.
@ HEALTH_THERMOMETER
This service exposes temperature and other data from a thermometer intended for healthcare and fitnes...
@ DEVICE_INFORMATION
This service exposes manufacturer and/or vendor information about a device.
@ GENERIC_ATTRIBUTE
The service allows receiving indications of changed services.
#define CHARACTERISTIC_PROP_ENUM(X)
#define SERVICE_TYPE_ENUM(X)
const jau::darray< const GattServiceCharacteristic * > GATT_SERVICES
GattCharacteristicProperty
@ ReliableWriteExt
FIXME: extension?
@ AuxWriteExt
FIXME: extension?
@ if_characteristic_supported
@ if_notify_or_indicate_supported
const GattServiceCharacteristic GATT_HEALTH_THERMOMETER_SRVC
https://www.bluetooth.com/wp-content/uploads/Sitecore-Media-Library/Gatt/Xml/Services/org....
const GattServiceCharacteristic GATT_DEVICE_INFORMATION_SRVC
std::string GattServiceTypeToString(const GattServiceType v) noexcept
const GattServiceCharacteristic GATT_GENERIC_ACCESS_SRVC
#define REQUIREMENT_SPEC_ENUM(X)
@ SOFTWARE_REVISION_STRING
@ REGULATORY_CERT_DATA_LIST
@ MANUFACTURER_NAME_STRING
@ PERIPHERAL_PRIVACY_FLAG
@ PERIPHERAL_PREFERRED_CONNECTION_PARAMETERS
@ TEMPERATURE_MEASUREMENT
@ FIRMWARE_REVISION_STRING
@ TEMPERATURE_TYPE
Mandatory: 8bit: 1 armpit, 2 body (general), 3(ear), 4 (finger), ...
@ TEMPERATURE
Mandatory: sint16 10^-2: Celsius.
@ SYSTEM_ID
Mandatory: uint40.
@ TEMPERATURE_CELSIUS
Mandatory: sint16 10^-1: Celsius.
@ INTERMEDIATE_TEMPERATURE
@ HARDWARE_REVISION_STRING
std::string GattRequirementSpecToString(const GattRequirementSpec v) noexcept
std::string GattCharacteristicTypeToString(const GattCharacteristicType v) noexcept
std::string GattCharacteristicPropertyToString(const GattCharacteristicProperty v) noexcept