I have a simple problem here. I use an ESP8266 WiFi module and an Arduino Uno r3.
What I want is to receive a serial message from the ESP8266 on the Arduino Uno.
Note: I set the upload speed of the ESP8266 to 9600.
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.write("hello friend");
delay(2000);
}
Arduino Uno:
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); //rx, tx
void setup() {
Serial.begin(9600);
mySerial.begin(9600);
}
String message = "";
boolean check = false;
void loop() {
Serial.println(mySerial.available());
mySerial.println("hindi nagagana");
while (mySerial.available() > 0) {
Serial.println(mySerial.readString());
check = true;
}
if (check == true) {
Serial.println(message);
}
delay(200);
}
Or any idea on how to control the Arduino Uno via the internet, such as a simple LED blink?
I used Firebase for databases an I plan to use ReactJs for webApp/Native App (nodeJs).
message
forever once something is received on mySerial