I'm trying to enable BTserial only when I push a button, how should I proceed?
There is any way to enable BTserial with an interrupt and then wait for some input and turn off the BT afterwards? And if I push the button again, BT turn on again, and so it goes?
I don't have code for now, but what I want to accomplish is: secure bluetooth with a button, so others can't connect.
Any simpler sulution to this "security" is welcome.
Can you link me a tutorial or something related to the implementation of a password?
The datasheet for whatever Bluetooth device you are using, but don't tell us about, will have what you need. Something like AT+PSWD
Thank you, I'll have a look.