Controling servo speed by slider

Nope. The truth is that I was wrong. At a first sight I thought it would't work, but OP stated it works and actually it does.

Yes, you can, any time you have boundaries to include or exclude.

On which end?

On the MIT App Inventor end of the protocol you can do some math like

On the arduino end you can use something like this

With the switch-case (Arduino does a shallow job of explaining switch-case here but doesn't even link to richer explanations as those from cpp reference: switch or the gnu compiler on case ranges that Arduino uses) you could use:

  case 20 ... 60:  setSpeed(ch - 20); break;

Or you could parse out and rescale the ranges before you pass the unmatched characters into switch as in:

e.g.:

      ...
      else if(20 <= ch && ch <= 60 ) { // parse out the speed
          speed = map(ch,20,60,0,255);
      } 
      else
      {
         switch(ch){
         ...

But if you want to manage even more sliders, moving to a text format with commands or delimiters will make it more easily manageable with higher resolution/smoother sliders.

Thank you. This is what I was looking for.