 /*
  * Send arbitrary IR codes via a web server or MQTT.
  * 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
+ * NOTE: An IR LED circuit *MUST* be connected to ESP8266 GPIO4 (D2). See IR_LED
  *
  * WARN: This is very advanced & complicated example code. Not for beginners.
  *       You are strongly suggested to try & look at other example code first.

#define argData "code"
#define argBits "bits"
#define argRepeat "repeats"
#define DEBUG True

// Globals
ESP8266WebServer server(HTTP_PORT);

#include <string>

// Configuration parameters
// GPIO the IR LED is connected to/controlled by. GPIO 4 = D2.
#define IR_LED 4
// define IR_LED 3  // For an ESP-01 we suggest you use RX/GPIO3/Pin 7.
#define HTTP_PORT 80  // The port the HTTP server is listening on.
#define HOSTNAME "ir_server"  // Name of the device you want in mDNS.

