I commented in my previous message that it is best to make a small program to study its operation, I also commented that Slider is not a good option to send information, unless you use it with a Clock.
Here is a small example for you to study how to send information by BT.
#include "BluetoothSerial.h"
BluetoothSerial SerialBT;
char caracter;
String palabra;
void setup(){
Serial.begin(9600);
SerialBT.begin("ESP32test");
}
void loop(){
if(SerialBT.available()) {
caracter = SerialBT.read();
palabra = palabra + caracter;
if(caracter == '*') {
palabra = palabra.substring(0, palabra.length() - 1); // Quita último caracter *
Serial.println(palabra);
palabra = "";
}
delay(100);
} // =>Fin del available
}
