Hi, i've detected if i turn on and turn off very quickly, it stucks, so i have to reset the arduino to work well again. I do not know if it is limited by the baud rate or whatever.
My scenario: i'm testing sending/receiving a String (3 chars) with a timer task, sending from Android with a 100ms period. So, Arduino receive it correctly, on, off, on, off... but after some executions, arduino stucks, i think that the bluetooth.available()
condition change its states.
I've tried with a delay(5);
after each on/off, improving the test, but i get stuck again after some seconds working rightly.
I've tried to thange the baud rate from my initial 9600 to some other, but it fails, i can not get it work if i change the baud rate.
bluetooth.begin(19200); //or some other standard speed rate, does not work anymore
Any ideas? Thx!!