5#ifndef LIBGULLIBLE_SERVICE_HPP
6#define LIBGULLIBLE_SERVICE_HPP
13 primary = BLE_GATT_SVC_TYPE_PRIMARY,
20 std::vector<std::shared_ptr<characteristic_base>>
_chrs;
31 .characteristics =
nullptr};
33 [[nodiscard]]
inline std::vector<std::shared_ptr<characteristic_base>>
const &
characteristics()
const;
35 [[nodiscard]]
inline std::vector<std::shared_ptr<characteristic_base>> &
characteristics();
46 std::vector<std::shared_ptr<characteristic_base>>
_chrs;
53 [[nodiscard]]
inline std::vector<std::shared_ptr<characteristic_base>>
const &
characteristics()
const;
Definition: service.hpp:44
snapshot(service const &svc)
Definition: service.cpp:17
uuid get_svc_uuid() const
Definition: service.hpp:90
service_type _type
Definition: service.hpp:45
ble_gatt_svc_def get_definition() const
Definition: service.cpp:27
std::unique_ptr< ble_gatt_chr_def[]> _nimble_chr_defs
Definition: service.hpp:48
service_type type() const
Definition: service.hpp:74
std::vector< std::shared_ptr< characteristic_base > > const & characteristics() const
Definition: service.hpp:82
std::vector< std::shared_ptr< characteristic_base > > _chrs
Definition: service.hpp:46
std::unique_ptr< ble_uuid_any_t > _nimble_svc_uuid
Definition: service.hpp:47
Definition: service.hpp:17
service_type _type
Definition: service.hpp:19
uuid const & svc_uuid() const
Definition: service.hpp:66
std::vector< std::shared_ptr< characteristic_base > > _chrs
Definition: service.hpp:20
service(uuid u, service_type type, std::vector< std::shared_ptr< characteristic_base > > chrs={})
Definition: service.cpp:9
std::vector< std::shared_ptr< characteristic_base > > const & characteristics() const
Definition: service.hpp:78
service_type type() const
Definition: service.hpp:70
snapshot take_snapshot() const
Definition: service.cpp:13
uuid _uuid
Definition: service.hpp:18
static constexpr ble_gatt_svc_def void_definition
Definition: service.hpp:27
static uuid from_nimble(ble_uuid_t const &ble_uuid)
Definition: uuid.cpp:123
Definition: characteristic.hpp:14
service_type
Definition: service.hpp:12