       Serial.printf("[%u] Connected from %d.%d.%d.%d url: %s\n", num, ip[0], ip[1], ip[2], ip[3], payload);
     } break;
 
-    case WSType_TEXT: {
-
+    case WStype_TEXT: {
       String command = (char*) payload;
       if (command == "status") {
         /**
          * Send status to client
          */
+
+        String command = (char*) payload;
+        StaticJsonBuffer<1024> jsonBuffer;
 
         JsonObject& root = jsonBuffer.createObject();
         root['brightness'] = max_bright;

}

void loop() {
  webSocket.loop();
  if (millis() > render) {
    FastLED.show();

// WIFI
const char* ssid = "";
const char* password = "";

// brightness
uint8_t max_bright = 80;

// Timers
unsigned long render = 0;
