 uint8_t nextionResetPin = D6;                       // Pin for Nextion power rail switch (GPIO12/D6)
 
 WiFiClient wifiClient;
+WiFiClient wifiMQTTClient;
 MQTTClient mqttClient(mqttMaxPacketSize);
 ESP8266WebServer webServer(80);
 ESP8266HTTPUpdateServer httpOTAUpdate;

const uint16_t mqttMaxPacketSize = 4096;            // Size of buffer for incoming MQTT message
String mqttClientId;                                // Auto-generated MQTT ClientID
String mqttGetSubtopic;                             // MQTT subtopic for incoming commands requesting .val
String mqttGetSubtopicJSON;                         // MQTT object buffer for JSON status when reqeusting .val
String mqttStateTopic;                              // MQTT topic for outgoing panel interactions
String mqttStateJSONTopic;                          // MQTT topic for outgoing panel interactions in JSON format
String mqttCommandTopic;                            // MQTT topic for incoming panel commands

    telnetServer.begin();
    debugPrintln(String(F("TELNET: debug server enabled at telnet:")) + WiFi.localIP().toString());
  }
  debugPrintln(F("SYSTEM: System init complete."));
}

