Chat here is you are connecting ESP-xx type modules to existing AVR based Arduino

Moderator: igrr

User avatar
By ClaytonAllen
#24348 So generally speaking,

Lets say I have a server ESP and a client ESP and I want the server to read some sensor data from the client. How would that look Arduino style?

Essentially, I am looking to have a server mounted atop my garage door opener and client mounted to the door which will host a tilt switch. So when I open the server IP from my smartphone; it will ask the client the status of the garage door then send a response to the smartphone. At which time I could push a button that will send a request to the server to activate the opener.

I don't need it 100% spelled out for me but at least a good nudge in the right direction would be most appreciated. :D

Cheers,

Clayton Allen
User avatar
By mrburnette
#24426 Clayton,

maybe something like this where the ESP is its own AP
https://www.hackster.io/rayburne/esp8266-access-point-using-arduino-ide

If you want the ESP logged onto your home WiFi, then more like this:
https://www.hackster.io/rayburne/esp8266-01-web-server
This means you can "see: the ESP on an address which is shared with the same AP your cellphone normally connects.

Both versions have benefits.


Ray