17 #ifndef MBED_DISCOVERED_CHARACTERISTIC_H__    18 #define MBED_DISCOVERED_CHARACTERISTIC_H__    22 #include "GattAttribute.h"    23 #include "GattClient.h"    24 #include "CharacteristicDescriptorDiscovery.h"    25 #include "DiscoveredCharacteristicDescriptor.h"   271             return !(lhs == rhs);
   276         operator uint8_t() 
const;
   277         operator unsigned() 
const;
   431         const uint8_t *value,
   576         return !(lhs == rhs);
 bool indicate(void) const 
Return the value of the indicate property. 
GattAttribute::Handle_t getDeclHandle(void) const 
Get the declaration handle of this characteristic. 
GattAttribute::Handle_t getLastHandle(void) const 
Return the last attribute handle of the characteristic definition. 
uint8_t _notify
If set, the server can emit notifications of the Characteristic Value (without client acknowledgment)...
ByteOrder_t
Enumeration of byte ordering. 
uint8_t _indicate
If set, the server can emit indication of the Characteristic Value (with client acknowledgement). 
bool notify(void) const 
Return the value of the notification property. 
uintptr_t connection_handle_t
Opaque reference to a connection. 
Representation of a characteristic discovered. 
GattAttribute::Handle_t declHandle
Value handle of the discovered characteristic's declaration attribute. 
Most significant byte first (at the smallest address). 
static const Handle_t INVALID_HANDLE
Invalid attribute handle. 
GattClient * gattc
Pointer to the underlying GattClient for this DiscoveredCharacteristic object. 
bool broadcast(void) const 
Return the value of the broadcast propertie. 
friend bool operator==(const DiscoveredCharacteristic &lhs, const DiscoveredCharacteristic &rhs)
"Equal to" operator for DiscoveredCharacteristic. 
uint8_t _write
If set, clients can issue requests to write the characteristic. 
const GattClient * getGattClient() const 
Get the GattClient, which can operate on this characteristic. 
ble_error_t discoverDescriptors(const CharacteristicDescriptorDiscovery::DiscoveryCallback_t &onDescriptorDiscovered, const CharacteristicDescriptorDiscovery::TerminationCallback_t &onTermination) const 
Initiate a discovery of the characteristic descriptors. 
uint8_t LongUUIDBytes_t[LENGTH_OF_LONG_UUID]
Type for a 128-bit UUID. 
ble_error_t writeWoResponse(uint16_t length, const uint8_t *value) const 
Perform a write without response procedure. 
UUID uuid
Discovered characteristic's UUID. 
friend bool operator!=(Properties_t lhs, Properties_t rhs)
Not equal to operator for DiscoveredCharacteristic::Properties_t. 
const Properties_t & getProperties(void) const 
Get the properties of this characteristic. 
Representation of a Universally Unique Identifier (UUID). 
bool write(void) const 
Return the value of the write property. 
GattClient * getGattClient()
Get the GattClient, which can operate on this characteristic. 
uint8_t _writeWoResp
If set, a write command can write the characteristic value (write without response). 
const UUID & getUUID(void) const 
Get the UUID of the discovered characteristic. 
bool writeWoResp(void) const 
Return the value of the write without response property. 
Define procedures required for interacting with a distant GATT server. 
ble::connection_handle_t connHandle
Handle of the connection where the characteristic was discovered. 
ble::attribute_handle_t Handle_t
Representation of an attribute handle. 
bool read(void) const 
Return the value of the read property. 
bool authSignedWrite(void) const 
Return the value of the authenticated signed writes property. 
GattAttribute::Handle_t lastHandle
Value handle of the discovered characteristic's last attribute. 
uint8_t _read
If set, the value of the characteristic can be read. 
uint8_t _broadcast
Permits broadcasts of the characteristic value using the character the Server Characteristic Configur...
ble::connection_handle_t getConnectionHandle() const 
Get the connection handle to the GattServer containing this characteristic. 
uint16_t ShortUUIDBytes_t
Type for a 16-bit UUID. 
Properties_t props
Hold the configured properties of the discovered characteristic. 
Properties of a discovered characteristic. 
GattAttribute::Handle_t valueHandle
Value handle of the discovered characteristic's value attribute. 
void setupLong(const LongUUIDBytes_t longUUID, ByteOrder_t order=UUID::MSB)
Replace existing value with a 128-bit UUID. 
GattAttribute::Handle_t getValueHandle(void) const 
Get the attribute handle of the characteristic value. 
friend bool operator==(Properties_t lhs, Properties_t rhs)
Equal to operator for DiscoveredCharacteristic::Properties_t. 
uint8_t _authSignedWrite
If set, signed write of the Characteristic Value is supported. 
ble_error_t
Error codes for the BLE API.