Page 1 of 1

Serial Gateway between Arduino Board and ESP

Posted: 24 Feb 2019, 12:43
by Cino2424
For now I use an ESP to control my Boiler.

I use a switch and Input Pins and several DS18b20. For GUI I have Domoticz running.
But I want to use a TFT on Mega2560 for GUI.

Is it possible to send data over serial to the ESP?

Re: Serial Gateway between Arduino Board and ESP

Posted: 24 Feb 2019, 14:56
by kimot

Re: Serial Gateway between Arduino Board and ESP

Posted: 28 Feb 2019, 19:12
by Cino2424
In this way it worked.

Code: Select all

void tempread() {
float h = dht.readHumidity();    
float t = dht.readTemperature();
char temp[] = "TaskValueSet,1,1,";
char hum[] = "TaskValueSet,1,2,";
Serial.print(temp);
Serial.println(t);
Serial.print(hum);
Serial.println(h);
}