I need to same advice, how to realize communication between ESP and arduino over wifi. I have connected temperature and pressure sensor to ESP, and I need to get this data from sensor to arduino. ESP will be connected to battery, so it should be also low power solution. I thought about something like every 2 minutes read the data and send to arduino, and then deepsleep. However I don’t know, how to realize that communication. I need webserver on arduino and client at ESP? Could someone help me?

closed as too broad by gre_gor, sempaiscuba, VE7JRO, jose can u c, per1234 Apr 30 '18 at 20:46

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 4
    There are as many ways of achieving this as there are people on this site offering advice. Myself I'd say use UDP since it's the simplest and lightest protocol. – Majenko Apr 30 '18 at 12:26

On the Uno with Ethernet shield you start an EthernetServer on port 23 or 2323. See ChatServer example.

On esp8266 you create a WiFiClient, connect it to IP address of the EthernetShield and port 23 (or 2323). Everything you print to WiFiClient will be send to EthernetServer's EthernetClient.

You can test the server with Telnet client.

Not the answer you're looking for? Browse other questions tagged or ask your own question.