How would I replicate this function on thunkable?
This should get you started.
If you aren’t checking the documentation before posting on the forums, it’d be a good idea.
Bluetooth can be tricky, so if you’re stumped, please post what you have so far and someone will try to help you out! But please start with the documentation so that we can help you just where you need it.