(self, hci_device='hci0', gatttool_logfile=None,
                 cli_options=None, search_window_size=None, max_read=None)
Initialize.

        hci_device -- the hci_device to use with GATTTool.
        gatttool_logfile -- an optional filename to store raw gatttool
                input and output.
        search_window_size -- integer (optional); size in bytes of the
                search window that is used by `pexpect.expect`. This value
                should not exceed max_read
        max_read -- integer; number of bytes to read into gatt buffer at
                a time. Defaults to ~2000
Initialize.
Initialize .
def __init__(self, hci_device='hci0', gatttool_logfile=None,
                 cli_options=None, search_window_size=None, max_read=None):
        """
        Initialize.

        hci_device -- the hci_device to use with GATTTool.
        gatttool_logfile -- an optional filename to store raw gatttool
                input and output.
        search_window_size -- integer (optional); size in bytes of the
                search window that is used by `pexpect.expect`. This value
                should not exceed max_read
        max_read -- integer; number of bytes to read into gatt buffer at
                a time. Defaults to ~2000
        """

        if is_windows():
            raise BLEError("The GATTToolBackend requires BlueZ, "
                           "which is not available in Windows")

        self._hci_device = hci_device
        self._cli_options = cli_options
        self._connected_device = None
        self._gatttool_logfile = gatttool_logfile
        self._receiver = None
        self._con = None  # gatttool interactive session
        self._characteristics = {}
        self._running = threading.Event()
        self._address = None
        self._send_lock = threading.Lock()
        self._auto_reconnect = False
        self._reconnecting = False
        self._search_window_size = search_window_size
        self._scan = None
        self._max_read = max_read
def __init__ ( self , hci_device = 'hci0' , gatttool_logfile = None , cli_options = None , search_window_size = None , max_read = None ) : if is_windows ( ) : raise BLEError ( "The GATTToolBackend requires BlueZ, " "which is not available in Windows" ) self . _hci_device = hci_device self . _cli_options = cli_options self . _connected_device = None self . _gatttool_logfile = gatttool_logfile self . _receiver = None self . _con = None # gatttool interactive session self . _characteristics = { } self . _running = threading . Event ( ) self . _address = None self . _send_lock = threading . Lock ( ) self . _auto_reconnect = False self . _reconnecting = False self . _search_window_size = search_window_size self . _scan = None self . _max_read = max_read