 int currentSpeed = 20;
 bool isAnimation = true;
 int counter = 0; // Compteur pour la mise a jour du random
+bool pause = false;
 
 uint8_t buffer[BUFFER_SIZE+1];
 int bufindex = 0;

  return httpServer.available().available();
}

void loop() {
  #ifdef DEBUG
    Serial.println(F("loop"));
  #endif
  //wdt_enable(WDTO_2S);
  // Try to get a client which is connected.
  Adafruit_CC3000_ClientRef client = httpServer.available();

            PRINT_DEBUG("currentSpeed: ", value);
          #endif
        }
        else if (strcmp(type, "pause") == 0) {
          togglePause();
          #ifdef DEBUG
            Serial.println(F("Toggle pause"));
          #endif
        }
        if (pause && strcmp(type, "pause") != 0 && strcmp(type, "status") != 0) {
          togglePause();
          #ifdef DEBUG
            Serial.println(F("Toggle pause auto"));
          #endif
        }
        
        if (callback != NULL) {
          if (!isAnimation) {
