Try the following code. You need a slider and a label.
This will provide 0-255 (but possibly skip a few digits...I did not test thoroughly
You know how to deal with single values to BlueTooth ... just substitute the label1.text .
To get precision (0 to 255) in discrete values, you could use three sliders. The first providing the first digit (0,1, or 2), the second providing 0 through 9 and the third also 0 through 9 (but not allowing 6,7,8 and 9 if the second digit is a 2. Save to label1, label2, label3 as string values (not the Math). then join label1.text + label2.text + label3.text to get 025, 157 etc.
If you are just interested in changing the motor speed with the slider, the Block code will work fine.
Did this work for you?
Regards,
Steve