code: def connect(self, mac: str):
          
          from bluepy.btle import Peripheral
          match_result = re.search(r'hci([\d]+)', self.adapter)
          if match_result is None:
              raise BluetoothBackendException(
                  'Invalid pattern "{}" for BLuetooth adpater. '
                  'Expetected something like "hci0".'.format(self.adapter))
          iface = int(match_result.group(1))
          self._peripheral = Peripheral(mac, iface=iface, addrType=self.address_type)
docs: Connect to a device.