diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2017-11-02 16:03:41 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2017-11-02 16:03:41 +0200 |
commit | 068e0ba214b9f4ec448a6f28be969d974094e5b4 (patch) | |
tree | bd63a551f20946a4156ace6fea01e61cd88a41a9 /client/advertising.h | |
parent | 5b9596dac4d0e25c5179be8643726a02c058b00a (diff) | |
download | bluez-068e0ba214b9f4ec448a6f28be969d974094e5b4.tar.gz |
client: Add set-advertise-{duration, timeout}
This adds the following command which can be used to control the
advertisement intervals:
[bluetooth]# set-advertise-duration 4
[bluetooth]# set-advertise-timeout 4
[bluetooth]# advertise on
[CHG] Controller B8:8A:60:D8:17:D7 SupportedInstances: 0x04
[CHG] Controller B8:8A:60:D8:17:D7 ActiveInstances: 0x01
Advertising object registered
[CHG] Controller B8:8A:60:D8:17:D7 SupportedInstances: 0x05
[CHG] Controller B8:8A:60:D8:17:D7 ActiveInstances: 0x00
Diffstat (limited to 'client/advertising.h')
-rw-r--r-- | client/advertising.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/advertising.h b/client/advertising.h index 6868518e7..bb9aed210 100644 --- a/client/advertising.h +++ b/client/advertising.h @@ -32,3 +32,5 @@ void ad_advertise_name(DBusConnection *conn, bool value); void ad_advertise_appearance(DBusConnection *conn, bool value); void ad_advertise_local_name(DBusConnection *conn, const char *name); void ad_advertise_local_appearance(DBusConnection *conn, uint16_t value); +void ad_advertise_duration(DBusConnection *conn, uint16_t value); +void ad_advertise_timeout(DBusConnection *conn, uint16_t value); |