Examples
Code examples for SimpleBluez.
To learn how to use SimpleBluez, please refer to the examples provided in the repository.
For controllers that support extended advertising, the advertisement secondary channel can be selected before registering the advertisement:
auto advertisement = bluez.root_custom()->advertisement_add("reader");
advertisement->secondary_channel("2M");
adapter->register_advertisement(advertisement);Use adapter->supported_secondary_channels() to check whether BlueZ reports
support for "2M" on the selected adapter.
