mqttReConnect static method

bool mqttReConnect()

Implementation

static bool mqttReConnect() {
  bool isConnected = BytedeskMqtt().isConnected();
  if (!isConnected) {
    BytedeskMqtt().connect();
    return true;
  }
  return false;
}