 /*
- * $Id: sonoff.ino,v 1.1 2016/04/04 14:45:06 anoncvs Exp $
+ * $Id: sonoff.ino,v 1.2 2016/04/30 14:52:52 anoncvs Exp $
  *
  * Sonoff Arduino implementation by Theo Arends
  */

	#undef MQTT_KEEPALIVE
#endif
#define MQTT_KEEPALIVE 120

struct SYSCFG {
  unsigned long cfg_holder;

#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <ESP8266httpUpdate.h>

/*
 * Change the defined MQTT packet size and keepalive
 * to larger values, as recommended by Theo.
 *
 * Note that the PubSubClient library should be included
 * -after- these redefines, not before.
 */
#ifdef MQTT_MAX_PACKET_SIZE
	#undef MQTT_MAX_PACKET_SIZE
