 byte mac[6]; // MAC address
 String macString;
 String ipString;
+String netmaskString;
+String gatewayString;
 
 ESP8266WebServer HTTP(80);
 

{
  aJson.addStringToObject(root, "name", "Philips hue");
  aJson.addStringToObject(root, "swversion", "01005215");
  aJson.addBooleanToObject(root, "portalservices", false);
  aJson.addStringToObject(root, "zigbeechannel", "0"); // As per spec, 0 is allowed
  aJson.addStringToObject(root, "mac", macString.c_str());
  aJson.addBooleanToObject(root, "dhcp", true);
  aJson.addStringToObject(root, "ipaddress", ipString.c_str());
  aJson.addStringToObject(root, "netmask", "255.255.255.0"); // TODO: FIXME
  aJson.addStringToObject(root, "gateway", "192.168.0.1"); // TODO: FIXME
  aJson.addStringToObject(root, "proxyaddress", "");
  aJson.addNumberToObject(root, "proxyport", 0);
  aJson.addStringToObject(root, "UTC", "2012-10-29T12:05:00");
  aJsonObject *whitelist;
  aJson.addItemToObject(root, "whitelist", whitelist = aJson.createObject());

  }

  macString = String(WiFi.macAddress());
  ipString = StringIPaddress(WiFi.localIP());
  netmaskString = StringIPaddress(WiFi.subnetMask());
  gatewayString = StringIPaddress(WiFi.gatewayIP());
    
  Serial.print("Starting HTTP at ");
  Serial.print(WiFi.localIP());
  Serial.print(":");
