weliem / bluez_inc

A C library for Bluez (BLE) that hides all DBus communication. It doesn't get easier than this. This library can also be used in C++.
MIT License
84 stars 19 forks source link

binc_advertisement_set_rate? #51

Closed abqjln closed 2 weeks ago

abqjln commented 3 weeks ago

For a peripheral (or central acting as a peripheral), It looks like default is about 1 second, but I'd like to vary the advertisement rate under different conditions.

Does something like "binc_advertisement_set_rate". Worried it is buried in the DBus configs. Thanks.

weliem commented 2 weeks ago

Good suggestion. I have implemented support for it in ce8063da3d8dc16840bbba1367e803986db31b08:

Use binc_advertisement_set_interval(advertisement, 500, 500);

Up to version 5.77 this will require experimental features to be enabled in main.conf.