BlueToe
an alternative GATT/BLE implementation
Loading...
Searching...
No Matches
server_name.hpp
1#ifndef BLUETOE_SERVER_NAME_HPP
2#define BLUETOE_SERVER_NAME_HPP
3
4#include <bluetoe/meta_types.hpp>
5
6namespace bluetoe {
7
8 namespace details {
9 struct server_name_meta_type {};
10 }
11
15 template < const char* const Name >
16 struct server_name {
18 struct meta_type :
19 details::server_name_meta_type,
20 details::valid_server_option_meta_type {};
21
22 static constexpr char const* name = Name;
23
24 static constexpr const char* value()
25 {
26 return name;
27 }
28
29 static constexpr std::size_t size()
30 {
31 return std::strlen( name );
32 }
34 };
35
36}
37
38#endif
adds a discoverable device name
Definition: server_name.hpp:16