         configFile.readBytes(buf.get(), size);
         DynamicJsonBuffer jsonBuffer;
         JsonObject& json = jsonBuffer.parseObject(buf.get());
+#ifdef DEBUG        
         json.printTo(Serial);
         Serial.println("");
+#endif        
         if (json.success()) {
           stassid = String((const char*)json["sta_ssid"]);
           stapass = String((const char*)json["sta_pass"]);


  Serial.begin(115200);

  // PWM outputs
  pinMode(D2, OUTPUT);  /* RED */
  pinMode(D4, OUTPUT);  /* GREEN */

#include <ArduinoJson.h>          //https://github.com/bblanchon/ArduinoJson
#include <PubSubClient.h>
#include <strings.h>
#include <EEPROM.h>

#include "DomoticzRGBDimmer.h"

/*
 * TODO: PWM value storage
 *   [x] store the values into EEPROM before OFF state
 *   []  restore the saved values from the EEPROM when entering ON state
*/ 

/* Program states and the current state */
