 #include <Wire.h>
 #include <farmerkeith_BMP280.h> // library, download from https://github.com/farmerkeith/BMP280-library
 #include <ArduinoJson.h>          //https://github.com/bblanchon/ArduinoJson
-
+#include <BlynkSimpleEsp8266.h>
+#include <DoubleResetDetector.h>
 
 // configuration constants
 const bool bme280Debug = 0; // controls serial printing

//  Measurement read command is delayed,
//  By repeatedly checking the "measuring" bit of status register (0xF3) until ready

//  Last updated on 12/02/2019

//  Features :  //////////////////////////////////////////////////////////////////////////////////////////////////////
/*                                                                                                                      
1. Connect to Wi-Fi, and upload the data to either Blynk App  or Thingspeak
2. Monitoring Weather parameters like Temperature, Pressure, Humidity and Altitude.
3. Extra Ports to add more Weather Sensors like UV Index, Light and Rain Guage etc.
4. Remote Battery Status Monitoring
5. V2.0 Using Sleep mode to reduce the energy consumed
6. v2.2 Modify to add GY-1145 UV sensor & DHT22 & do it as option in code (CSC)
7. v2.2 Add tzapu/WifiManger, allow user to enter Blynk authentication code or Thinkspeak API,
        only allow to enter either one, if both detected, only use the Blynk

*/

// Todo

WiFiClient client; //client
String readString;

// Number of seconds after reset during which a 
// subseqent reset will be considered a double reset.
#define DRD_TIMEOUT 10

// RTC Memory Address for the DoubleResetDetector to use
#define DRD_ADDRESS 0

DoubleResetDetector drd(DRD_TIMEOUT, DRD_ADDRESS);

//callback notifying us of the need to save config
void saveConfigCallback () {
  Serial.println("Should save config");
