最新revisionだとなんかerrorになるので、暫定的に rev 111にrevert。ごめんなさい。こういうときどういうふうにcommitすればいいのか分からなかったので。
Fork of BLE_API by
GattCharacteristic Class Reference
GATT characteristic. More...
#include <GattCharacteristic.h>
Detailed Description
GATT characteristic.
Definition at line 29 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 271 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 232 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 112 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 |
||
) |
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. [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
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 326 of file GattCharacteristic.h.
Generated on Tue Jul 12 2022 20:47:07 by 1.7.2