Bluefruit LE UART Friend on Arduino Uno

There's 2 things I want.

  1. I want to set an RGB colour with my phone. (incorrect) Example:
RGBcode = strcmp(ble.buffer)
leds[i] = CRGB(RGBcode);
FastLED.show();
  1. I want to change my pattern with my phone. (incorrect) Example:
while (strcmp(ble.buffer), "rainbow") == 0)) {
for (int j = 0; j < 255; j++) {
      for (int i = 0; i < NUM_LEDS; i++) {
        leds[i] = CHSV(i - (j * fadespeed), SATURATION, BRIGHTNESS);
      }
      FastLED.show();
      delay(25);
    }
}

while (strcmp(ble.buffer), "bounce") == 0)) {
for (int i = 0; i < NUM_LEDS; i++) {
      leds[i] = CRGB(0, 0, 255);
      FastLED.show();
      delay(25);
    }
    for (int i = NUM_LEDS; i > -1; i--) {
      leds[i] = CRGB(255, 0, 0);
      FastLED.show();
      delay(25);
    }
}

Basically, what would solve both of my problems, is a variable in which I can store the data I sent from my phone.