1#ifndef BLUETOE_SM_INCLUDE_OOB_AUTHENTICATION_HPP
2#define BLUETOE_SM_INCLUDE_OOB_AUTHENTICATION_HPP
4#include <bluetoe/ll_meta_types.hpp>
14 struct oob_authentication_callback_meta_type {};
20 using oob_authentication_data_t = std::array< std::uint8_t, 16 >;
38 template <
typename T, T& Obj >
44 : oob_data_present_(
false )
50 std::tie( oob_data_present_, oob_data_ ) = Obj.sm_oob_authentication_data( address );
53 bool has_oob_data_for_remote_device()
const
55 return oob_data_present_;
58 oob_authentication_data_t get_oob_data_for_last_remote_device()
const
64 details::oob_authentication_callback_meta_type,
65 link_layer::details::valid_link_layer_option_meta_type {};
68 bool oob_data_present_;
69 std::array< std::uint8_t, 16 > oob_data_;
74 class no_oob_authentication
81 bool has_oob_data_for_remote_device()
const
86 std::array< std::uint8_t, 16 > get_oob_data_for_last_remote_device()
const
88 return std::array< std::uint8_t, 16 >{{ 0 }};
92 details::oob_authentication_callback_meta_type,
93 link_layer::details::valid_link_layer_option_meta_type {};
data type containing a device address and the address type (public or random).
Definition: address.hpp:107
interface to provide OOB data to the pairing process
Definition: oob_authentication.hpp:40