r/esp32•
rendeath

New to ESP32, need help sending data over WiFi

I’m trying to send sensor data over WiFi between two espressif ESP32 Devkit v4 boards. I want to have a temp sensor hooked up to an ESP32 in my detached garage that sends the data over WiFi to my second ESP32 in my office and then sends that data over serial to my Nextion display. I’d also like to be able to use the Nextion to send a command from the office to the garage ESP32 to trip a relay module to turn on the lights. I’m looking for a good tutorial on using two ESP32s as a point to point serial bridge. Any help would be appreciated. If there’s a better way to send the data over WiFi, I’d be interested to learn about it. Thanks.

Posted Oct 11, 2018, 4:17 PM UTC

24
[deleted]•

[deleted]

3
rendeathOP•

Is the MQTT server running on the ESP32 or is it a separate server requiring the ESP32s to be connected to a router? My ideal setup would send data directly from one ESP32 to the other so if the network goes out it will operate independently.

1
[deleted]•

[deleted]

3
rendeathOP•

Thank you for this well constructed and thorough response. I’m going to use node-red since I already have a Pi. I’ll check in once I get it running

2
[deleted]•

[deleted]

3