code: def connect(self, host, port=1883, keepalive=60, bind_address=""):
          
          self.connect_async(host, port, keepalive, bind_address)
          return self.reconnect()
docs: Connect to a remote broker.
  
          host is the hostname or IP address of the remote broker.
          port is the network port of the server host to connect to. Defaults to
          1883. Note that the default port for MQTT over SSL/TLS is 8883 so if you
          are using tls_set() the port may need providing.
          keepalive: Maximum period in seconds between communications with the
          broker. If no other messages are being exchanged, this controls the
          rate at which the client will send ping messages to the broker.