   // Configure and connect to MQTT broker.
   g_mqttClient.setServer(MQTT_SERVER_IP, MQTT_SERVER_PORT);
   g_mqttClient.setCallback(callback);
-
-  // Configure and initialize OTA listener.
-  ArduinoOTA.setHostname(OTA_HOSTNAME);
-  ArduinoOTA.setPassword(OTA_PASSWORD);
-  ArduinoOTA.setPort(OTA_PORT);
-  
-  #ifdef DEBUG
-    ArduinoOTA.onStart([]() {
-      Serial.println(F("INFO:  OTA session started."));
-    });
-    ArduinoOTA.onEnd([]() {
-      Serial.println(F("INFO:  OTA session ended."));
-    });
-    ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) {
-      Serial.printf("INFO:  OTA rogress is %u%%\r", (progress / (total / 100)));
-    });
-    ArduinoOTA.onError([](ota_error_t error) {
-      Serial.printf("ERROR: [%u] ", error);
-      if (error == OTA_AUTH_ERROR) {
-        Serial.println("Auth Failed");
-      } else if (error == OTA_BEGIN_ERROR) {
-        Serial.println("Begin Failed");
-      } else if (error == OTA_CONNECT_ERROR) {
-        Serial.println("Connect Failed");
-      } else if (error == OTA_RECEIVE_ERROR) {
-        Serial.println("Receive Failed");
-      } else if (error == OTA_END_ERROR) {
-        Serial.println("End Failed");
-      }
-    });
-  #endif
-
-  ArduinoOTA.begin();
 }
 
 /*

PubSubClient      g_mqttClient(g_wifiClient);

// Other event handling
const uint8_t     DEBOUNCE_DELAY    = 200; // Delay in MS
long              DEBOUNCE_TIME     = 0;

//############################################################################
//


#include <ESP8266WiFi.h>    // https://github.com/esp8266/Arduino (GNUv2.1 licence)
#include <PubSubClient.h>   // https://github.com/knolleary/pubsubclient (no licence)
#include <ESP8266HTTPClient.h>
#include <ESP8266httpUpdate.h>

#define DEBUG
#define MQTT_VERSION MQTT_VERSION_3_1_1
