connect method
Implementation
void connect([String? username, String? password]) async {
assert(_client != null);
try {
appDebugPrint('MQTT::Mosquitto start client connecting....');
await _client!.connect(username, password);
} on Exception catch (e) {
appDebugPrint('MQTT::client exception - $e');
disconnect();
}
}