     }
     else if ( command.substring(0,10) == "Light OFF;" ) {
       digitalWrite( LED_PIN, LOW );
+    }
+    else if ( command.substring(0,5) == "Servo" ) {
+        String servoSpeed = command.substring(6,command.indexOf(';'));
+        analogWrite(SERVO_PIN, servoSpeed.toInt());
     }
 
     

unsigned char len = 0;
String command;
int buttonState = 0;

void loop()
{

  

  pinMode(BTN_PIN,INPUT);
  pinMode(LED_PIN,OUTPUT);
  pinMode(SERVO_PIN, OUTPUT);
  pinMode(POT_PIN, INPUT);
  digitalWrite( LED_PIN, LOW );
  
  // Init. and start BLE library.
  ble_begin();
    
  // Enable serial debug
  Serial.begin(57600);
}
