BlueToe
an alternative GATT/BLE implementation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
bluetoe::link_layer::connectable_directed_advertising Class Reference

enables low duty connectable directed advertising More...

#include <bluetoe/link_layer/include/bluetoe/advertising.hpp>

Public Member Functions

template<typename Type >
void change_advertising ()
 change type of advertisment
 
void directed_advertising_address (const device_address &addr)
 sets the address to be used in the advertising PDU.
 

Detailed Description

enables low duty connectable directed advertising

When using directed advertising, advertising starts, when no connection is established and and the directed_advertising_address() function was called.

See also
connectable_undirected_advertising
scannable_undirected_advertising
non_connectable_undirected_advertising
Examples
change_advertising_example.cpp.

Member Function Documentation

◆ change_advertising()

template<typename Type >
void bluetoe::link_layer::connectable_directed_advertising::change_advertising ( )

change type of advertisment

If more than one advertising type is given, this function can be used to define the advertising that is used next, when the device starts advertising. If the device is currently advertising, the function has no effect until the device stops advertising and starts over to advertise.

Template Parameters
Typethe next type of advertising
Examples
change_advertising_example.cpp.

◆ directed_advertising_address()

void bluetoe::link_layer::connectable_directed_advertising::directed_advertising_address ( const device_address addr)

sets the address to be used in the advertising PDU.

Starts advertising if an address was not set before.

Examples
change_advertising_example.cpp.

The documentation for this class was generated from the following file: