Hi there
I am doing a project in which I need to send data from the mobile to Arduino with bluetooth, with the #include <SoftwareSerial.h> liberia, and then save it in a variable to be able to make comparisons. I can't do it, ja has been with this problem for more than a week. Can someone help me please.
Thank you
At the moment it took this code but it does not work:
#include <SoftwareSerial.h>
SoftwareSerial mySerial(2,3); //RX i TX
int Word;
int Valor;
void setup() {
Serial.begin(9600);
mySerial.begin(9600);
pinMode(10, OUTPUT);
}
void loop() {
while (mySerial.available()) {
if (mySerial.available() > 0) {
Valor = mySerial.read();
Word = Valor;
}
}
Serial.println(Word);
}