#include <bluetoe/server.hpp>
#include <bluetoe/bindings/nrf52.hpp>
static std::uint8_t write_handler( bool flag );
>
>
>;
gatt,
> link_layer;
static std::uint8_t write_handler( bool flag )
{
if ( flag )
{
}
else
{
}
}
A characteristic is a typed value that is accessable by a GATT client hosted by a GATT server.
Definition: characteristic.hpp:160
enables low duty connectable directed advertising
Definition: advertising.hpp:285
void directed_advertising_address(const device_address &addr)
sets the address to be used in the advertising PDU.
void change_advertising()
change type of advertisment
enables connectable undirected advertising
Definition: advertising.hpp:147
void change_advertising()
change type of advertisment
data type containing a random device address
Definition: address.hpp:244
Root of the declaration of a GATT server.
Definition: server.hpp:85
a 128-Bit UUID used to identify a service.
Definition: service.hpp:57
a service with zero or more characteristics
Definition: service.hpp:150
@ success
Definition: codes.hpp:154
typename nrf52_details::link_layer_factory< Server, details::requires_encryption_support_t< Server >::value, typename nrf52_details::radio_options< Options... >::result, typename nrf52_details::link_layer_options< Options... >::result >::link_layer nrf52
binding for nRF52 microcontrollers
Definition: nrf52.hpp:988
binds a free function as a write handler for the given characteristic
Definition: characteristic_value.hpp:1253