 DNSServer dnsServer;
 ESP8266WebServer server(80);
 
-String* genAPForm() {
-  return new String("");
-/*
-  if not aptbl then return "<html><body>No AP data :-(</body></html>" end
-  buf = ""; checked = " checked"
-  for ssid, _ in pairs(aptbl) do
-    buf = buf .. '<input type="radio" name="ssid" value="' .. ssid .. '"' ..
-      checked .. '>' .. ssid .. '<br/>\n'
-    checked = ""
-  end
-  return string.gsub(wifiform, "_ITEMS_", buf)
-*/
-}
-
 void setup() {
   Serial.begin(115200);
-  Serial.setDebugOutput(true);
+  // Serial.setDebugOutput(true);
 
-  WiFi.mode(WIFI_AP);
+  WiFi.mode(WIFI_AP_STA);
   WiFi.softAPConfig(apIP, apIP, netMsk);
   WiFi.softAP(ssid);
 

}

void handle_root() {
  Serial.println("Page served");
  String toSend = html;
  //toSend.replace("TGT0", LEDstate[0] ? "y" : "b");
  //toSend.replace("TGT2", LEDstate[2] ? "y" : "b");

  "</body></html>";

const char* apChoice = 
  "<html><head><title>WaterElf Aquaponics Helper: Wifi Config</title>"
  "<style>body{background:#FFF;color: #000;font-family: sans-serif;}</style>"
  "</head><body>"
  "<h2>Choose a wifi access point to join</h2><p><form method='POST' action='chz'> "
  "_ITEMS_<br/>Pass key: <input type='textarea' name='key'><br/><br/> "
  "<input type='submit' value='Submit'></form></p></body></html>";

const byte DNS_PORT = 53;
IPAddress apIP(192, 168, 1, 1);
