   #define     DEBUG_PRINT(x)    telnetClient.print(x)
   #define     DEBUG_PRINTLN(x)  telnetClient.println(x)
 #else
-  #define     DEBUG_PRINT(x)
-  #define     DEBUG_PRINTLN(x)
+  #define     DEBUG_PRINT(x)    Serial.print(x)
+  #define     DEBUG_PRINTLN(x)  Serial.println(x)
 #endif
 
 // Wi-Fi
-const char*   WIFI_SSID     = "[REDACTED]";
-const char*   WIFI_PASSWORD = "[REDACTED]";
+const char*   WIFI_SSID     = "<ssid>";
+const char*   WIFI_PASSWORD = "<password>";
+#define HOST "ARILUX%s"
+char chipid[12];
 
 // MQTT topics
-const char*   ARILUX_MQTT_STATE_STATE_TOPIC         = "arilux/state/state";
-const char*   ARILUX_MQTT_STATE_COMMAND_TOPIC       = "arilux/state/set";
-const char*   ARILUX_MQTT_BRIGHTNESS_STATE_TOPIC    = "arilux/brightness/state";
-const char*   ARILUX_MQTT_BRIGHTNESS_COMMAND_TOPIC  = "arilux/brightness/set";
-const char*   ARILUX_MQTT_COLOR_STATE_TOPIC         = "arilux/color/state";
-const char*   ARILUX_MQTT_COLOR_COMMAND_TOPIC       = "arilux/color/set";
+char   ARILUX_MQTT_STATE_STATE_TOPIC[44];
+char   ARILUX_MQTT_STATE_COMMAND_TOPIC[44];
+char   ARILUX_MQTT_BRIGHTNESS_STATE_TOPIC[44];
+char   ARILUX_MQTT_BRIGHTNESS_COMMAND_TOPIC[44];
+char   ARILUX_MQTT_COLOR_STATE_TOPIC[44];
+char   ARILUX_MQTT_COLOR_COMMAND_TOPIC[44];
+char   ARILUX_MQTT_WHITE_STATE_TOPIC[44];
+char   ARILUX_MQTT_WHITE_COMMAND_TOPIC[44];
+
+#define DEFARILUX_MQTT_STATE_STATE_TOPIC "arilux/%s/state/state"
+#define DEFARILUX_MQTT_STATE_COMMAND_TOPIC  "arilux/%s/state/set"
+#define DEFARILUX_MQTT_BRIGHTNESS_STATE_TOPIC "arilux/%s/brightness/state"
+#define DEFARILUX_MQTT_BRIGHTNESS_COMMAND_TOPIC "arilux/%s/brightness/set"
+#define DEFARILUX_MQTT_COLOR_STATE_TOPIC  "arilux/%s/color/state"
+#define DEFARILUX_MQTT_COLOR_COMMAND_TOPIC  "arilux/%s/color/set"
+#define DEFARILUX_MQTT_WHITE_STATE_TOPIC  "arilux/%s/white/state"
+#define DEFARILUX_MQTT_WHITE_COMMAND_TOPIC  "arilux/%s/white/set"
+const char*   TOPICPING =  "ping";
+const char*   TOPICPONG = "pong";
+
 
 // MQTT payloads
-const char*   ARILUX_MQTT_STATE_ON_PAYLOAD          = "ON";
-const char*   ARILUX_MQTT_STATE_OFF_PAYLOAD         = "OFF";
+const char*   ARILUX_MQTT_STATE_WHITEFULLON_PAYLOAD         = "2";
+const char*   ARILUX_MQTT_STATE_ON_PAYLOAD          = "1";
+const char*   ARILUX_MQTT_STATE_OFF_PAYLOAD         = "0";
 
 // MQTT buffer
-char msgBuffer[12];
+char msgBuffer[32];
 
 // MQTT
 const char*   MQTT_CLIENT_ID                        = "arilux";
-const char*   MQTT_SERVER_IP                        = "m21.cloudmqtt.com";
-const int     MQTT_SERVER_PORT                      = [REDACTED];
-const char*   MQTT_USER                             = "[REDACTED]";
-const char*   MQTT_PASSWORD                         = "[REDACTED]";
+const char*   MQTT_SERVER_IP                        = "192.168.1.200";
+const int     MQTT_SERVER_PORT                      = 1883;
+const char*   MQTT_USER                             = "";
+const char*   MQTT_PASSWORD                         = "";
 
 volatile uint8_t cmd = ARILUX_CMD_NOT_DEFINED;
 

  } else {
    DEBUG_PRINT(F("ERROR: Sending the MQTT subscribe failed. Topic: "));
    DEBUG_PRINTLN(ARILUX_MQTT_COLOR_COMMAND_TOPIC);
  }
}


      DEBUG_PRINTLN(MQTT_PASSWORD);
      DEBUG_PRINT(F("Broker: "));
      DEBUG_PRINTLN(MQTT_SERVER_IP);
      delay(1000);
      ESP.reset();
    }
