Hello my friends
I am new to using Arduino and I am doing some experiment.
I wanted connecting two NanoEvery using bluetooth: so first programmed two HC-05 modules and paired them; then I used the master module on the main Arduino and the slave on the receiving one.
This now works for me: the connection is setup in few seconds after power on and data exchange is possible.
However I wanted to be able to connect to the receiving Arduino also from another device. I did this by controlling Vcc on the bt module, via a Nano port + one darlington. This also works, so the main Arduino board connects to the receiving Arduino board and they exchange data; the main Arduino programmatically can power down its bt module, so that the receiving bt module (in some 20 secs) times-out its connection and is available to be connected and controlled by a second controller (at this stage I used a sketch on the Bluetooth Electronics app for Android, and it works for me).
Now the questions:
-is removing power to the bt module in any way dangerous?
-which smarter way could I use to disconnect the bt communication without removing power to the bt module?
-how could I quickly release the receiving module without waiting for the 20 secs (an internal time out, I guess)?
Thank you for any guidance you can give me