Hi John, On Thu, Jul 21, 2022 at 8:00 AM John Klug <John.Klug@xxxxxxxxxxxxx> wrote: > > Luiz Augusto von Dentz > >I think the problem is that you are issuing the select-attribute and > >then exiting, instead you will need to enter all the commands at the > >same time otherwise the next time you call bluetoothctl it doesn't > >have any attribute selected > > With gatttool you could issue all the commands non-interactively from the command line. > > What you are saying is bluetoothctl has limited command line capability, and cannot replace gatttool as currently written. Not quite what I said, the difference is that bluetoothctl does require another command to access so when you are scripting things you would have to pass the input as a multi line instead of invoking the binary multiple times with a single line, we could perhaps add support for a input file where one could enter multiple commands. > > > John Klug > -- Luiz Augusto von Dentz