 #define CONFIG_VERSION "001"
 
 // Maximum number of devices connected to IO pins.
-#define MAX_DEVICES 8
+#define MAX_DEVICES 3
+
+// Maximum number of subscriptions to MQTT.
+#define MAX_SUBSCRIPTIONS 6
 
 // Length of name strings. (hostname, room names, lamp names, etc.)
 #define NAME_LEN 32
 
 // Each device has an address in the form 'role/location1/location2/etc'
 // eg: 'lighting/kitchen/worktop/left'.
-#define ADDRESS_SEGMENTS 6
+#define ADDRESS_SEGMENTS 4
 #define ADDRESS_SEGMENT_LEN 32
+
+
 
 
 enum Io_Type {

}



// HTTP
ESP8266WebServer http_server(80);

void handleRoot() {
  digitalWrite(led, 1);
  int b;

  String message = "hello from esp8266!\n";

  message += brokers.Summary();

  http_server.send(200, "text/plain", message);
}

void handleConfig() {
