connect method
Implementation
Future<MqttCommunicator> connect({
required String host,
port = 1883,
secure = false,
String? username,
String? password,
}) async {
final communicator = MqttCommunicator(
server: host,
port: port,
username: username,
password: password,
secure: secure,
);
await communicator.connect();
return communicator;
}