 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 mqttGetSubtopicJSON;                         // MQTT object buffer for JSON status when requesting .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

  espSetupOta();

  // Create server and assign callbacks for MQTT
  mqttClient.begin(mqttServer, atoi(mqttPort), wifiClient);
  mqttClient.onMessage(mqttCallback);
  mqttConnect();


uint8_t nextionResetPin = D6;                       // Pin for Nextion power rail switch (GPIO12/D6)

WiFiClient wifiClient;
WiFiClient wifiMQTTClient;
MQTTClient mqttClient(mqttMaxPacketSize);
ESP8266WebServer webServer(80);
ESP8266HTTPUpdateServer httpOTAUpdate;
