code: def connect(self, obj, params):
          
  
          connect_params = WLAN_CONNECTION_PARAMETERS()
          connect_params.wlanConnectionMode = 0  # Profile
          connect_params.dot11BssType = 1  # infra
          profile_name = create_unicode_buffer(params.ssid)
  
          connect_params.strProfile = profile_name.value
          ret = self._wlan_connect(
              self._handle, obj['guid'], byref(connect_params))
          self._logger.debug('connect result: %d', ret)
docs: Connect to the specified AP.