 // Maximum number of devices connected to IO pins.
 #define MAX_DEVICES 8
 
+// Length of name strings. (hostname, room names, lamp names, etc.)
+#define NAME_LEN 32
+
 
 enum Io_Type {
   test,

  if (!mqtt_client.connected()) {
    Serial.println("MQTT disconnected.");
    mqtt_connect();
  }  
}

  message += config.config_version;
  message += "\n";

  for(int i = 0; i < MAX_DEVICES; ++i){
    message += i;
    message += "  ";
    message += config.devices[i].name;
    message += "  ";
    message += config.devices[i].room;
    message += "  ";
    message += config.devices[i].io_type + "  ";
    message += config.devices[i].io_pins[0] + ",";
    message += config.devices[i].io_pins[1] + ",";
    message += config.devices[i].io_pins[2] + ",";
    message += config.devices[i].io_pins[3];
    message += "\n";
  }

  message += brokers.Summary();

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