Goal : send data from Arduino Ethernet to ESP8266 wirelessly
Proposed solution : send data from Ethernet to MQTT server then reading data from MQTT server using ESP8266
Questions :
1- Which libraries should I include in each part of code (Ethernet/ESP8266) ?
2- Is there any better method to send data from ethernet arduino to ESP8266 without MQTT ?
3- I need some examples to better understand how can I do it
1- Which libraries should I include in each part of code (Ethernet/ESP8266) ?
I use this library on ESP8266 to communicate with mosquitto (MQTT broker). The README says it works with Arduino Ethernet shield but I have not tried it.
2- Is there any better method to send data from ethernet arduino to ESP8266 without MQTT ?
One possibility is to run a webserver on the ESP8266 and web/http client on the Arduino Ethernet.
3- I need some examples to better understand how can I do it
pubsubclient library includes examples.
The following are esp8266 http/web server examples.