2013-06-28 16:39:21

by Àlex Fiestas

[permalink] [raw]
Subject: Discoverable devices

Is there any way of knowing if a device that is ALREADY created is in
Discoverable mode?

Calling startDiscvoer + monitor interfaceAdded/Remove works nice but that only
works for devices that are newly discovered, not for those devices that are
are already registered in the bus.

I read about org.bluez.Device1.Appearance but it does not seem to have any
value on any of my devices under any circumstance.

Am I missing something?

thanks !


2013-06-28 17:40:07

by Vinicius Costa Gomes

[permalink] [raw]
Subject: Re: Discoverable devices

Hi ?lex,

On 18:39 Fri 28 Jun, ?lex Fiestas wrote:
> Is there any way of knowing if a device that is ALREADY created is in
> Discoverable mode?

The first thing that comes to mind is listening for changes in the RSSI
property, i.e. monitor the org.freedesktop.DBus.Properties.PropertiesChanged
as well.

>
> Calling startDiscvoer + monitor interfaceAdded/Remove works nice but that only
> works for devices that are newly discovered, not for those devices that are
> are already registered in the bus.
>
> I read about org.bluez.Device1.Appearance but it does not seem to have any
> value on any of my devices under any circumstance.

Appearance is only present for Low Energy devices.

>
> Am I missing something?
>
> thanks !
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html


Cheers,
--
Vinicius