 
 int nextMode(String mode) {
     int currentPattern = animations->nextPattern();
-    /*char currentPatternString[5];
+    char currentPatternString[5];
     sprintf(currentPatternString, "%i", currentPattern);
-    Particle.publish("Current Pattern", currentPatternString);*/
+    Particle.publish("Current Pattern", currentPatternString);
     return 1;
 }
 


int previousMode(String mode) {
    int currentPattern = animations->previousPattern();
    /*char currentPatternString[5];
    sprintf(currentPatternString, "%i", currentPattern);
    Particle.publish("Current Pattern", currentPatternString);*/
    return 1;
}


  }

void loop() {
    if(client.connected()) {
        readColorFromRemote();
    } else {
      connectToRemote();
    }

    animations->runCurrentAnimation();
    FastLED.show();
