linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bug: no PropertiesChanged signal for org.bluez.Device1.AdvertisingData
@ 2019-01-08 16:03 Arnaud Mouiche
  2019-01-08 16:12 ` Von Dentz, Luiz
  0 siblings, 1 reply; 3+ messages in thread
From: Arnaud Mouiche @ 2019-01-08 16:03 UTC (permalink / raw)
  To: linux-bluetooth, Luiz Augusto von Dentz

Hello Luiz,

I was playing with latest sources (git) and experimental features 
enabled in order to:
- perform a BLE scan
- find AdvertisingData (in particularly the BT_AD_INDOOR_POSITIONING (0x25))

I found that:
- once scanning is done org.bluez.Device1.AdvertisingData is correctly 
set to the expected value (the one advertised)
- yet, there was no PropertiesChanged signal corresponding to this 
AdvertisingData property update (despite I received PropertiesChanged 
for RSSI)


Indeed src/device.c:: add_data() performs a particular filtering to only 
signal EIR_TRANSPORT_DISCOVERY data.

> static void add_data(void *data, void *user_data)
> {
>     struct eir_ad *ad = data;
>     struct btd_device *dev = user_data;
>
>     if (!bt_ad_add_data(dev->ad, ad->type, ad->data, ad->len))
>         return;
>
>     if (ad->type == EIR_TRANSPORT_DISCOVERY)
>         g_dbus_emit_property_changed(dbus_conn, dev->path,
>                         DEVICE_INTERFACE,
>                         "AdvertisingData");
> }

Is there a particular reason for this behavior ?

Regards,
Arnaud


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-01-08 19:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-08 16:03 Bug: no PropertiesChanged signal for org.bluez.Device1.AdvertisingData Arnaud Mouiche
2019-01-08 16:12 ` Von Dentz, Luiz
2019-01-08 19:00   ` Arnaud Mouiche

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).