Save slider thumb value in DB

How should I store the slider thumb value as it changes and what type of DB should i use for it?

I tried TinyDB but it doesn't seem to be working. Also, i need to load the initial value of slider upon app launch.

Here is what i have tried,

your code must work, test it first then ask a question

Why do you think, it is not working?
How did you test?

Taifun

You should test if connected before sending to Bluetooth.