 	delay(1000);
 	Serial.begin(9600);
   Serial.println(String("ap started: ") + ap_started + " WiFi connected: " + wifi_connected); 
+
+  pinMode(D1,INPUT);
+  pinMode(D4,OUTPUT);
+  digitalWrite(D4,HIGH);  // turn it off
 }
 
 void loop() {

  IPAddress ap_IP = WiFi.softAPIP();
  Serial.print("AP IP address: ");
  Serial.println(ap_IP);
}

void startServer() {

 * 
 * In normal mode, collect data and send to the data store
 * 
 *
 * configuration needs to set the configuration in non-volatile store
 *  * 
 */
 
#include <ESP8266WiFi.h>
