 char red[5];
 const char* mqttUser = "mqttUser";
 const char* mqttPw = "mqttuser";
-const char* ssid = "test";
+const char* ssid = "redDevice";
 const char* passphrase = "testpassword";
 String esid;
 String epass = "";

//      digits = strtok(NULL, ".");
//   }

  digits = strtok(eggateway, ".");
  k = 137;
  while(digits != NULL ) {
      Serial.println(atoi(digits));   
      EEPROM.write(k,atoi(digits));
      k++; 
      digits = strtok(NULL, ".");
   }

  digits = strtok(egdns, ".");
  k = 141;
  while(digits != NULL ) {
      Serial.println(atoi(digits));   
      EEPROM.write(k,atoi(digits));
      k++; 
      digits = strtok(NULL, ".");
   }
//  for (int i = 129; i < 133; ++i)
//  {
//    Serial.println(EEPROM.read(i)); 
//  }
  
  WiFi.begin();
  delay(1000);
  Serial.println("");
  Serial.println("delay done");

        delay(10);
      }
  }
  launchWeb(0);
   while(1)
      {
        server.handleClient();
        delay(10);
      }
//  if (digitalRead(4)==false)
//  { 
//    Serial.println("button pressed at beginning");
