MqttBrowserClient constructor

MqttBrowserClient(
  1. String server,
  2. String clientIdentifier, {
  3. int maxConnectionAttempts = 3,
})

Initializes a new instance of the MqttServerClient class using the default Mqtt Port. The server hostname to connect to The client identifier to use to connect with

Implementation

MqttBrowserClient(
  String server,
  String clientIdentifier, {
  this.maxConnectionAttempts = 3,
}) : super(server, clientIdentifier);