-
- Downloads
bluez: Sanitize command line arguments and fix outgoing pairing
The simple-agent command line arguments were a bit weird, it can just act as an agent by giving no arugments or the adaptor to use. However to pair a specific device a adaptor was mandatory (which is pointless on most systems with just one adaptor). And for extra fun adding a third argument which (could be whatever). Sanitize things by making the device an optional argument rather then a positional one. Drop the recgonition of the third positional argument (bluetoothctl can be used instead to remove pairings). On top of that switch to argparse (The recommended argument parser in python 3), fix outgoing pairings (with bluez5 you can only trigger a pairing with devices found during scanning it seems) and add a --yes argument to accept all incoming connection making it more convenient to use in testing. Reviewed-by:Philip Withnall <philip.withnall@collabora.co.uk> Signed-off-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D2207
Please register or sign in to comment