ESP32 slider example

For me, this approach is working well.
For more control, I set the min-max values for the slider once the screen is initialized to (1-10 for me), I initialized the global variable with the median value (5), I forced the same min/max values in the Designer->Slider->Properties, I collect and display the value set by the slider in a label (to see it, good for debugging), and added a button to send the value once properly set (it worked directly, but I didn't want to query the BT very often).
The sending protocol is using 'CallBluetooth -> SendText' since it is easier to manipulate and parse the data sent this way on the module side (see atoi() ).
Cheers!
C.

1 Like