 
 
 void ColorUpdate(const char *name, const char *data) {
+    String receivedID;
     if (data) {
+        
         char input[64];
         strcpy(input,data);
         char *p;

int receivedHue = 0;
int receivedSaturation = 0;
int receivedValue = 0;

String receivedID;
CHSV baseColor;

void setup() {
    Particle.subscribe("Beacon Update", ColorUpdate, MY_DEVICES);


    }
    // DEBUG
    Particle.publish("Color_Recieved", selfName + "~" + receivedHue + "~" + receivedSaturation + "~" + receivedValue);
    // END DEBUG
    if(receivedID ==otherName ){
        baseColor = CHSV(receivedHue, receivedSaturation, receivedValue);
    }
}

