   if ( requestedUri.endsWith("/config") )
   {
     String longstr = "[{"
+                     " \"lights\": { " + getLightString(1) + " }," // FIXME: Properly iterate as to provide more than one light
                      " \"name\": \"Philips hue\","
-                     " \"zigbeechannel\": 15,"
-                     " \"mac\": \"00:17:88:00:00:00\","
+                     " \"zigbeechannel\": 0," // As per spec, 0 is allowed
+                     " \"mac\": \"" + macString + "\","
                      " \"dhcp\": true,"
-                     " \"ipaddress\": \"192.168.0.16\","
-                     " \"netmask\": \"255.255.255.0\","
-                     " \"gateway\": \"192.168.0.1\","
+                     " \"ipaddress\": \"" + ipString + "\","
+                     " \"netmask\": \"255.255.255.0\"," // TODO: FIXME
+                     " \"gateway\": \"192.168.0.1\"," // TODO: FIXME
                      " \"proxyaddress\": \"none\","
                      " \"proxyport\": 0,"
                      " \"UTC\": \"2014-07-17T09:27:35\","
-                     " \"localtime\": \"2014-07-17T11:27:35\","
-                     " \"timezone\": \"Europe/Madrid\","
+                     //" \"localtime\": \"2014-07-17T11:27:35\"," // This was added in a bridge update at the beginning of 2014
+                     " \"timezone\": \"\","
+                     //" \"timezone\": \"Europe/Berlin\","
                      " \"whitelist\": {"
                      " \"" + client + "\": {"
                      " \"last use date\": \"2015-06-17T07:21:38\","
                      " \"create date\": \"2014-04-08T08:55:10\","
                      " \"name\": \"Chroma for Hue\""
-                     " },"
-                     " \"pAtwdCV8NZId25Gk\": {"
-                     " \"last use date\": \"2014-05-07T18:28:29\","
-                     " \"create date\": \"2014-04-09T17:29:16\","
-                     " \"name\": \"MyApplication\""
-                     " },"
-                     " \"gDN3IaPYSYNPWa2H\": {"
-                     " \"last use date\": \"2014-05-07T09:15:21\","
-                     " \"create date\": \"2014-05-07T09:14:38\","
-                     " \"name\": \"iPhone Web 1\""
                      " }"
+                     //  " \"pAtwdCV8NZId25Gk\": {"
+                     //   " \"last use date\": \"2014-05-07T18:28:29\","
+                     //   " \"create date\": \"2014-04-09T17:29:16\","
+                     //   " \"name\": \"MyApplication\""
+                     //   " },"
+                     //  " \"gDN3IaPYSYNPWa2H\": {"
+                     //  " \"last use date\": \"2014-05-07T09:15:21\","
+                     //  " \"create date\": \"2014-05-07T09:14:38\","
+                     //  " \"name\": \"iPhone Web 1\""
+                     //  " }"
                      " },"
                      " \"swversion\": \"01012917\","
                      " \"apiversion\": \"1.3.0\","


  HTTP.onNotFound(handleAllOthers);

  HTTP.on("/ssdp/schema.xml", HTTP_GET, []() {
    WiFiClient client = HTTP.client();
    SSDP.schema(&client);
    client.stop();
  });

  HTTP.on("/description.xml", HTTP_GET, []() {
    String desc = "<root><specVersion><major>1</major><minor>0</minor></specVersion><URLBase>http://192.168.1.35:80/</URLBase><device><deviceType>urn:schemas-upnp-org:device:Basic:1</deviceType><friendlyName>Philips hue (192.168.1.35)</friendlyName><manufacturer>Royal Philips Electronics</manufacturer><manufacturerURL>http://www.philips.com</manufacturerURL><modelDescription>Philips hue Personal Wireless Lighting</modelDescription><modelName>Philips hue bridge 2012</modelName><modelNumber>929000226503</modelNumber><modelURL>http://www.meethue.com</modelURL><serialNumber>00178817122c</serialNumber><UDN>uuid:2f402f80-da50-11e1-9b23-00178817122c</UDN><presentationURL>index.html</presentationURL><iconList><icon><mimetype>image/png</mimetype><height>48</height><width>48</width><depth>24</depth><url>hue_logo_0.png</url></icon><icon><mimetype>image/png</mimetype><height>120</height><width>120</width><depth>24</depth><url>hue_logo_3.png</url></icon></iconList></device></root>";
    HTTP.send(200, "text/plain", desc);
    Serial.println(desc);
  });


  HTTP.begin();

  byte mac[6];
  char base[UUIDBASE_SIZE];
  WiFi.macAddress(mac);
  sprintf(base, "esp8266x-%02x%02x-%02x%02x-%02x%02x", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);

  Serial.printf("Starting uSSDP: BASE: %s, MAC: %02x:%02x:%02x:%02x:%02x:%02x\n", base, mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
  device.begin((const char*)base, mac);
  device.serialNumber((char*)"00178817122c");
  device.manufacturer((char*)"Royal Philips Electronics");
  device.manufacturerURL((char*)"http://www.philips.com");
  device.modelName((char*)"Philips hue bridge 2012");
  device.modelNumber("929000226503");
  device.serialNumber(base);
  device.friendlyName((char*)"Philips hue ()");
  device.presentationURL((char*)"index.html");
  SSDP.begin(&device);
  Serial.println("SSDP Started");
}

void loop() {
  HTTP.handleClient();
  SSDP.process();
  delay(1);
}

                     " \"portalservices\": false,"
                     " \"portalconnection\": \"connected\","
                     " \"portalstate\": {"
                     " \"signedon\": false,"
                     " \"incoming\": false,"
                     " \"outgoing\": true,"
                     " \"communication\": \"disconnected\""
                     " }"
                     "}]";

    //if (isAuthorized == false) longstr = "[{\"swversion\":\"01008227\",\"apiversion\":\"1.2.1\",\"name\":\"Smartbridge 1\",\"mac\":\"" + macString + "\",}]";
    HTTP.send(200, "text/plain", longstr);
    Serial.println(longstr);
    Serial.println("I assume there is an error n my response since after this the iOS app says Bridge disconnected");
  }

  else if (requestedUri.endsWith(client))
  {
    String str = "[{\"success\":{\"username\": \"" + client + "\"}}]";
    HTTP.send(200, "text/plain", str);
    Serial.println(str);
    Serial.println("I am not sure what needs to be responded here. http://forum.fhem.de/index.php/topic,11020.msg181588.html#msg181588 says it needs to respons with a COMPLETE json");
  }
  
  else if (requestedUri.endsWith("/api"))
    // On the real bridge, the link button on the bridge must have been recently pressed for the command to execute successfully.
    // We try to execute successfully regardless of a button for now.
  {
    isAuthorized = true; // FIXME: Instead, we should persist (save) the username and put it on the whitelist
    String str = "[{\"success\":{\"username\": \"" + client + "\"}}]";
    HTTP.send(200, "text/plain", str);
    Serial.println(str);
  }
  else if (requestedUri.endsWith("/lights"))
    // We simulate one bulb per NeoPixel (TODO: more clever ideas?)
  {
    String str = "[{ " + getLightString(1) + "}]";
    HTTP.send(200, "text/plain", str);
    Serial.println(str);
  }

  else if (requestedUri == "/description.xml")
  {
    WiFiClient client = HTTP.client();
    String str = "<root><specVersion><major>1</major><minor>0</minor></specVersion><URLBase>http://" + ipString + ":80/</URLBase><device><deviceType>urn:schemas-upnp-org:device:Basic:1</deviceType><friendlyName>Philips hue (" + ipString + ")</friendlyName><manufacturer>Royal Philips Electronics</manufacturer><manufacturerURL>http://www.philips.com</manufacturerURL><modelDescription>Philips hue Personal Wireless Lighting</modelDescription><modelName>Philips hue bridge 2012</modelName><modelNumber>929000226503</modelNumber><modelURL>http://www.meethue.com</modelURL><serialNumber>00178817122c</serialNumber><UDN>uuid:2f402f80-da50-11e1-9b23-00178817122c</UDN><presentationURL>index.html</presentationURL><iconList><icon><mimetype>image/png</mimetype><height>48</height><width>48</width><depth>24</depth><url>hue_logo_0.png</url></icon><icon><mimetype>image/png</mimetype><height>120</height><width>120</width><depth>24</depth><url>hue_logo_3.png</url></icon></iconList></device></root>";
    HTTP.send(200, "text/plain", str);
    Serial.println(str);
    Serial.println("I assume this is working since with this, Chroma for Hue finds a Bridge, so does the Hue iOS app. In constrast, without this they say no Bridge found.");
  }

  else
  {
