public class MqttConfig extends Object
MqttConfig class contains the configuration data used to
 connect a MqttClient.| Constructor and Description | 
|---|
| MqttConfig(String host,
          short port,
          String clientId,
          String username,
          String password,
          int connectionTimeout,
          int keepAliveInterval,
          boolean cleanSession,
          SslConfig sslConfig,
          String sslCA,
          String sslCert)Instantiates an MQTT configuration. | 
public MqttConfig(String host, short port, String clientId, @Nullable String username, @Nullable String password, int connectionTimeout, int keepAliveInterval, boolean cleanSession, @Nullable SslConfig sslConfig, @Nullable String sslCA, @Nullable String sslCert)
host - the hostname of the broker.port - the TCP port of the broker.clientId - the ID of this client.username - the username for authentication, or
                          null if authentication is not required.password - the password for authentication, or
                          null if authentication is not required.connectionTimeout - the connection timeout, in seconds.keepAliveInterval - the keep-alive interval, in seconds.cleanSession - true to connect using a clean
                          non-persistent session, false to
                          connect using a persistent session.sslConfig - SSL configuration.sslCA - SSL CA certificate details.sslCert - SSL certificate details.