Bluetoothctl.expect#
- Bluetoothctl.expect(*a, reject=None, **kw)[source]#
Wait for a pattern in the
bluetoothctloutput.- Parameters:
*a – positional arguments passed to
pexpect.expect.reject (
sequence) – regular expressions aborting the wait; seeexpect.**kw – keyword arguments passed to
pexpect.expect.
- Returns:
(index, groups)of the match, as in pexpect. The index is relative to the expected patterns.- Return type:
tuple