The app I made to connect to an arduino HC-05 bluetooth module doesn't seem to work. I believe it's because the app doesn't send the numbers properly. I am testing an LED light to light up when it receives the signal '6' and go out with '7'. I'm not sure how to provide the number so the app can understand.
Can someone please explain whether I have to use 'send text' or 'send number' and should I type the number plainly or with additional symbols. Thank you!
Dear @Vainius,
48 is = 0x30 = ASCII character '0'.It seems that the "state" is never receivng anything, but since 48 is greater than 0 it enters the if (bluetooth.available() > 0) {.....
Are you sure that the HC05 is really receiving something ?
My hint is to send text from AI2, though you are sending numbers, then in your Arduino sketch you shall treat the received stuff as characters, i.e.: '6', '7' etc.
In any case, as @ABG has already said, @Juan_Antonio's web site (KIO4) is a real "treasure pot" and you can find therein lot of ready made examples.