19#ifndef MBED_DISCOVERED_SERVICE_H__
20#define MBED_DISCOVERED_SERVICE_H__
23#include "ble/gatt/GattAttribute.h"
93 uuid(
UUID::ShortUUIDBytes_t(0)),
119 startHandle = startHandleIn;
120 endHandle = endHandleIn;
138 startHandle = startHandleIn;
139 endHandle = endHandleIn;
Representation of a GATT service discovered.
DiscoveredService()
Construct a DiscoveredService instance.
const GattAttribute::Handle_t & getEndHandle() const
Get the end handle of the discovered service in the peer's GATT server.
void setupLongUUID(UUID::LongUUIDBytes_t longUUID, UUID::ByteOrder_t order=UUID::MSB)
Set the long UUID of the discovered service.
void setup(const UUID &uuidIn, GattAttribute::Handle_t startHandleIn, GattAttribute::Handle_t endHandleIn)
Set information about the discovered service.
void setup(GattAttribute::Handle_t startHandleIn, GattAttribute::Handle_t endHandleIn)
Set the start and end handle of the discovered service.
const GattAttribute::Handle_t & getStartHandle() const
Get the start handle of the discovered service in the peer's GATT server.
const UUID & getUUID() const
Get the UUID of the discovered service.
Representation of a GattServer attribute.
ble::attribute_handle_t Handle_t
Representation of an attribute handle.
Representation of a Universally Unique Identifier (UUID).
void setupLong(const LongUUIDBytes_t longUUID, ByteOrder_t order=UUID::MSB)
Replace existing value with a 128-bit UUID.
uint8_t LongUUIDBytes_t[LENGTH_OF_LONG_UUID]
Type for a 128-bit UUID.
ByteOrder_t
Enumeration of byte ordering.
@ MSB
Most significant byte first (at the smallest address).