 /*
  * Send arbitrary IR codes via a web server or MQTT.
- * Copyright David Conran 2016
+ * Copyright David Conran 2016, 2017, 2018
  * Version 0.3 Oct, 2017
  *
  * NOTE: An IR LED circuit *MUST* be connected to ESP8266 pin 4 (D2). See IR_LED

const char* mqtt_password = "";
#define MQTT_RECONNECT_TIME 5000  // Delay(ms) between reconnect tries.

#define MQTTprefix "ir_server"
#define MQTTack MQTTprefix "/sent"  // Topic we send back acknowledgements on
#define MQTTcommand MQTTprefix "/send"  // Topic we get new commands from.
#endif  // MQTT_ENABLE


  lastReconnectAttempt = 0;

  if (mdns.begin(HOSTNAME, WiFi.localIP())) {
    debug("MDNS responder started");
  }

  // Setup the root web page.
  server.on("/", handleRoot);
