       setCurrent(0, 0, 0);
     }
 
-    if (extractRangeAndTarget(messageBuffer.c_str(), &start, &end, strip.numPixels(), &R, &G, &B)) {
+    char* next = strtok((char*) messageBuffer.c_str()," ");
+    if (extractRangeAndTarget(&start, &end, strip.numPixels(), &R, &G, &B)) {
       end = end + 1;
       for(uint16_t i = start; i < end; i++) {
         strip.setPixelColor(i, strip.Color(R, G, B));

void clearQueue() {
  CommandEntry* head = dequeueHead();
  while(head != nullptr) {
    delete(head);
    head = dequeueHead();
  }

WiFiClient wclient;
ESP8266WiFiGenericClass wifi;

#define MAX_CYCLE_LENGTH 20

const char* OFF = "off";
const char* RANGE = "range";
const char* CLEAR_AND_RANGE = "clear+range";
const char* FADE = "fade";
const char* CYCLE = "cycle";

#define FADE_COMMAND 1

