isConnected method

bool isConnected()

Implementation

bool isConnected() {
  return mqttClient?.connectionStatus?.state == MqttConnectionState.connected;
}