Hi All, I am desperately looking for help.
I sent data, mostly "0" and "1" from a ESP32S3 Touch screen to a ESP-01 ESP8266 WIFI Module and then to a Arduino Mega. I can see the data on the Mega Serial.print but no matter what I do it does not run my motors. It seems like there is no connections between the received data and end code.
Store what you read in a variable and use that variable
void loop()
{
char ch = 0;
if (Serial1.available())
{
// Read data from ESP-01S
ch = Serial1.read();
// and forward to Serial Monitor
Serial.write(ch);
// do something with ch here
}
The data I receive is "Received Value_StringUP: 1" and values "0" when not pressed on transmitter.
Is the following what you mean to do?
void loop()
{
char Value_StringUP = 0;
if (Serial1.available())
{
// Read data from ESP-01S
Value_StringUP = Serial1.read();
// and forward to Serial Monitor
Serial.write(Value_StringUP);
// do something with ch here
}