Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_WallbotBLE_Challenge by
GattCharacteristic Class Reference
GATT characteristic. More...
#include <GattCharacteristic.h>
Detailed Description
GATT characteristic.
Definition at line 30 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 272 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 233 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 113 of file GattCharacteristic.h.
Constructor & Destructor Documentation
GattCharacteristic | ( | const UUID & | uuid, |
uint8_t * | valuePtr = NULL , |
||
uint16_t | initialLen = 0 , |
||
uint16_t | maxLen = 0 , |
||
uint8_t | props = BLE_GATT_CHAR_PROPERTIES_NONE , |
||
GattAttribute * | descriptors[] = NULL , |
||
unsigned | numDescriptors = 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] uuid The UUID to use for this characteristic [in] valuePtr The memory holding the initial value. The value is copied into the stack when the enclosing service is added; and thereafter maintained internally by the stack. [in] initialLen 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 [in] descriptors A pointer to an array of descriptors to be included within this characteristic [in] numDescriptors The number of descriptors
: If valuePtr == NULL, initialLength == 0, and properties == READ for the value attribute of a characteristic, then that particular characteristic may be considered optional and dropped while instantiating the service with the underlying BLE stack.
Definition at line 329 of file GattCharacteristic.h.
Generated on Tue Jul 12 2022 13:52:34 by
