Thread (3 messages) 3 messages, 2 authors, 2016-07-07

Re: Invalid file descriptor gatttool of bluez 5.32

flat view

From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Date: 2015-07-27 08:27:14

Hi Tobias,

On Mon, Jul 27, 2015 at 10:14 AM, Tobias Preclik
[off-list ref] wrote:
Hello,

it seems the cleanup process when disconnecting from a bluetooth LE device
changed in bluez 5.32 but gatttool (attrib/interactive.c:disconnect_io)
wasn't updated.

$ ./gatttool -I
[                 ][LE]> connect FF:A7:8C:98:46:B6 random
Attempting to connect to FF:A7:8C:98:46:B6
Connection successful
[FF:A7:8C:98:46:B6][LE]> disconnect

(gatttool:20949): GLib-WARNING **: Invalid file descriptor.

[FF:A7:8C:98:46:B6][LE]> exit

What's the right way to do it in gatttool/bluez 5.32?
There are new tools to use with GATT, bluetoothctl/bluetoothd is the
preferred since with that you have GAP, etc, but if want to use a
stand alone tool then I suggest you use btgatt-client.


-- 
Luiz Augusto von Dentz
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help