Send values from a slider to a BLE

I want to send values ​​from a slider to control the speed of a small DC motor, I am using the xiao esp32 c3 board which has BLE, I am trying to make a slider application But I'm not sure how to send the values ​​correctly, I just want to send a value between 0 and 255 to control the motor with a pwm

The program I made for works if I send a number between 0 and 255 from nrf




Try this:


2 Likes

What Patrick says is correct in itself, but it may not work, because it could cause trying to send messages to your BLE much too fast. So, you should wait until the message is written before you try to send a new one.
If you want more help, then search this forum how to properly post your blocks, or post an .aia
Also, make sure you are using the latest BLE extension.