Bluetoothctl.expect#

Bluetoothctl.expect(*a, reject=None, **kw)[source]#

Wait for a pattern in the bluetoothctl output.

Parameters:
  • *a – positional arguments passed to pexpect.expect.

  • reject (sequence) – regular expressions aborting the wait; see expect.

  • **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