   delay(250);
 }
 
+
+void goingToSleepWithFail()
+{
+  digitalWrite(greenLED, LOW);
+  digitalWrite(blueLED, LOW);
+  digitalWrite(redLED, LOW);
+
+  digitalWrite(redLED, HIGH);
+  delay(300);
+  digitalWrite(redLED, LOW);
+  delay(300);
+  digitalWrite(redLED, HIGH);
+  delay(300);
+  digitalWrite(redLED, LOW);
+  
+  ESP.deepSleep(0);
+  delay(250);
+}
+
+
 String macToStr(const uint8_t* mac)
 {
   String result;


void setup()
{
  // pinmode setup
  pinMode(resetupPin, OUTPUT);
  pinMode(blueLED, OUTPUT);
  pinMode(greenLED, OUTPUT);
  pinMode(redLED, OUTPUT);

  digitalWrite(resetupPin, LOW);
  digitalWrite(redLED, HIGH);


String getResetInfo ;

int vdd;

//
unsigned long startMills;

IPAddress server(192, 168, 10, 10);
WiFiClient wifiClient;
