I am trying to transmit and receive data via bluetooth between app and arduino, I can send data to arduino but having trouble to read data on the android app end.
arduino code:
#include <SoftwareSerial.h>
SoftwareSerial bt(2,3); // RX, TX
int ledPin = 13;
String readString;
void setup() {
Serial.begin(9600);
bt.begin(9600);
pinMode(ledPin, OUTPUT);
}
void loop() {
while (bt.available()) {
delay(3);
char c = bt.read();
readString += c;
[b] bt.println(15);[/b]
// btn.println(1);
}
I beleive bt.println should do the job, if am not wrong. I used blueserial app which reads the data on the screen. So, I think the communication is happening. Also, tested it with teraterm on my laptop can confirm the reception of data from arduino via bluetooth.
So, am guessing am doing something stupid at the app end, it should be right under my nose.
attaching the app inventor end code as a screenshot.
Any help would highly be appreciated!