19 #ifndef MBED_DISCOVERED_CHARACTERISTIC_H__ 20 #define MBED_DISCOVERED_CHARACTERISTIC_H__ 23 #include "ble/gatt/GattAttribute.h" 24 #include "ble/gatt/GattCallbackParamTypes.h" 25 #include "ble/gatt/CharacteristicDescriptorDiscovery.h" 26 #include "ble/gatt/DiscoveredCharacteristicDescriptor.h" 107 uint8_t _broadcast :1;
118 uint8_t _writeWoResp :1;
141 uint8_t _indicate :1;
146 uint8_t _authSignedWrite :1;
244 return _authSignedWrite;
276 return !(lhs == rhs);
281 operator uint8_t()
const;
282 operator unsigned()
const;
354 ble_error_t writeWoResponse(uint16_t length,
const uint8_t *value)
const;
413 ble_error_t write(uint16_t length,
const uint8_t *value)
const;
436 const uint8_t *value,
441 uuid.setupLong(longUUID, order);
581 return !(lhs == rhs);
Function like object adapter over freestanding and member functions.
uint8_t _notify
If set, the server can emit notifications of the Characteristic Value (without client acknowledgment)...
ByteOrder_t
Enumeration of byte ordering.
ble::GattClient * gattc
Pointer to the underlying ble::GattClient for this DiscoveredCharacteristic object.
uint8_t _indicate
If set, the server can emit indication of the Characteristic Value (with client acknowledgement).
uintptr_t connection_handle_t
Opaque reference to a connection.
GattAttribute::Handle_t getLastHandle() const
Return the last attribute handle of the characteristic definition.
Representation of a characteristic discovered.
bool broadcast() const
Return the value of the broadcast propertie.
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.
bool authSignedWrite() const
Return the value of the authenticated signed writes property.
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.
ble::GattClient * getGattClient()
Get the ble::GattClient, which can operate on this characteristic.
uint8_t LongUUIDBytes_t[LENGTH_OF_LONG_UUID]
Type for a 128-bit UUID.
UUID uuid
Discovered characteristic's UUID.
friend bool operator!=(Properties_t lhs, Properties_t rhs)
Not equal to operator for DiscoveredCharacteristic::Properties_t.
Representation of a Universally Unique Identifier (UUID).
uint8_t _writeWoResp
If set, a write command can write the characteristic value (write without response).
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.
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.
void operator!=(const SafeBool< T > &lhs, const SafeBool< U > &rhs)
Avoid conversion to bool between different classes.
bool write() const
Return the value of the write property.
GattAttribute::Handle_t getDeclHandle() const
Get the declaration handle of this characteristic.
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.
const UUID & getUUID() const
Get the UUID of the discovered characteristic.
Define procedures required for interacting with a distant GATT server.
Properties_t props
Hold the configured properties of the discovered characteristic.
bool writeWoResp() const
Return the value of the write without response property.
Properties of a discovered characteristic.
const ble::GattClient * getGattClient() const
Get the ble::GattClient, which can operate on this characteristic.
GattAttribute::Handle_t valueHandle
Value handle of the discovered characteristic's value attribute.
GattAttribute::Handle_t getValueHandle() 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.
Entry namespace for all BLE API definitions.
const Properties_t & getProperties() const
Get the properties of this characteristic.
bool notify() const
Return the value of the notification property.
bool read() const
Return the value of the read property.
uint8_t _authSignedWrite
If set, signed write of the Characteristic Value is supported.
bool indicate() const
Return the value of the indicate property.
ble_error_t
Error codes for the BLE API.