1#ifndef BLUETOE_GAP_SERVICE_HPP
2#define BLUETOE_GAP_SERVICE_HPP
5#include <bluetoe/service.hpp>
6#include <bluetoe/appearance.hpp>
7#include <bluetoe/server_name.hpp>
12 struct gap_service_definition_meta_type {};
14 template < std::u
int16_t MinConnectionInterval, std::u
int16_t MaxConnectionInterval >
15 struct check_gap_service_for_gatt_servers_parameter
31 details::gap_service_definition_meta_type,
32 details::valid_server_option_meta_type {};
34 template <
typename Services,
typename ... ServerOptions >
36 typedef Services type;
54 details::gap_service_definition_meta_type,
55 details::valid_server_option_meta_type {};
57 template <
typename Appearance,
typename Name >
71 template <
typename Services,
typename ... ServerOptions >
73 typedef typename details::find_by_meta_type<
74 details::device_appearance_meta_type,
79 static constexpr char default_server_name[ 15 ] =
"Bluetoe-Server";
81 typedef typename details::find_by_meta_type<
82 details::server_name_meta_type,
87 typedef typename details::add_type<
89 gap_service< device_appearance, device_name >
97 template <
typename Services,
typename ... ServerOptions >
98 constexpr char gap_service_for_gatt_servers::add_service< Services, ServerOptions... >::default_server_name[ 15 ];
A characteristic is a typed value that is accessable by a GATT client hosted by a GATT server.
Definition: characteristic.hpp:160
a 16-Bit UUID used to identify a service
Definition: service.hpp:80
a service with zero or more characteristics
Definition: service.hpp:150
a 16-Bit UUID used to identify a characteristic.
Definition: characteristic.hpp:79
a constant string characteristic value
Definition: characteristic_value.hpp:429
type to keep a bluetoe::appearance value
Definition: appearance.hpp:18
provides a characteristic with a fixed, read-only value
Definition: characteristic_value.hpp:345
Used as a parameter to a server, to define that the GATT server will include a GAP service for GATT s...
Definition: gap_service.hpp:51
Used as a parameter to a server, to define that the GATT server will not include a GAP service for GA...
Definition: gap_service.hpp:28
adds a discoverable device name
Definition: server_name.hpp:16