BLE temperature profile using digital DS1820 or analog LM35 sensors
GattCharacteristic Class Reference
GATT characteristic. More...
#include <GattCharacteristic.h>
Detailed Description
GATT characteristic.
Definition at line 32 of file GattCharacteristic.h.
Member Typedef Documentation
Standard GATT characteritic properties.
- Note:
- See Bluetooth Specification 4.0 (Vol. 3), Part G, Section 3.3.1.1 and Section 3.3.3.1 for Extended Properties
typedef enum GattCharacteristic::ble_gatt_format_e ble_gatt_format_t |
Standard GATT number types.
- Note:
- See Bluetooth Specification 4.0 (Vol. 3), Part G, Section 3.3.3.5.2
- See http://developer.bluetooth.org/gatt/descriptors/Pages/DescriptorViewer.aspx?u=org.bluetooth.descriptor.gatt.characteristic_presentation_format.xml
typedef enum GattCharacteristic::ble_gatt_unit_e ble_gatt_unit_t |
Standard GATT characteristic presentation format unit types. These unit types are used to decribe what the raw numeric data in a characteristic actually represents.
typedef struct GattCharacteristic::PresentationFormat presentation_format_t |
GATT presentation format wrapper.
- Note:
- See Bluetooth Specification 4.0 (Vol. 3), Part G, Section 3.3.3.5
- See https://developer.bluetooth.org/gatt/descriptors/Pages/DescriptorViewer.aspx?u=org.bluetooth.descriptor.gatt.characteristic_presentation_format.xml
Member Enumeration Documentation
Standard GATT characteritic properties.
- Note:
- See Bluetooth Specification 4.0 (Vol. 3), Part G, Section 3.3.1.1 and Section 3.3.3.1 for Extended Properties
- Enumerator:
Definition at line 277 of file GattCharacteristic.h.
enum ble_gatt_format_e |
Standard GATT number types.
- Note:
- See Bluetooth Specification 4.0 (Vol. 3), Part G, Section 3.3.3.5.2
- See http://developer.bluetooth.org/gatt/descriptors/Pages/DescriptorViewer.aspx?u=org.bluetooth.descriptor.gatt.characteristic_presentation_format.xml
- Enumerator:
Definition at line 237 of file GattCharacteristic.h.
enum ble_gatt_unit_e |
Standard GATT characteristic presentation format unit types. These unit types are used to decribe what the raw numeric data in a characteristic actually represents.
- Enumerator:
Definition at line 116 of file GattCharacteristic.h.
Constructor & Destructor Documentation
GattCharacteristic | ( | uint16_t | id = 0 , |
uint16_t | minLen = 1 , |
||
uint16_t | maxLen = 1 , |
||
uint8_t | props = 0 |
||
) |
Creates a new GattCharacteristic using the specified 16-bit UUID, value length, and properties.
- Note:
- The UUID value must be unique in the service and is normally >1
- Parameters:
-
[in] id The 16-bit UUID to use for this characteristic [in] minLen The min length in bytes of this characteristic's value [in] maxLen The max length in bytes of this characteristic's value [in] props The 8-bit bit field containing the characteristic's properties
EXAMPLE
// UUID = 0x2A19, Min length 2, Max len = 2, Properties = write GattCharacteristic c = GattCharacteristic( 0x2A19, 2, 2, BLE_GATT_CHAR_PROPERTIES_WRITE );
Definition at line 49 of file GattCharacteristic.cpp.
~GattCharacteristic | ( | void | ) | [virtual] |
Destructor
Definition at line 63 of file GattCharacteristic.cpp.
Generated on Tue Jul 12 2022 15:07:16 by 1.7.2