BlueToe
an alternative GATT/BLE implementation
|
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. | |
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.
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.
Type | the next type of advertising |
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.