So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By Fabri
#76301 Hello! I'm new with the esp8266 and I'm using Arduino IDE for the first time. I have some knowledge on microcontrollers using C.

I'm trying to make a network with a few ESP-12F. The idea is to control (activate a relay and get some data from a GPIO) each node individually from an android app through the internet. At first I want to control them with a web interface and leave the app for later.

I already been able to control one ESP-12F using an example that I found, in wich the ESP works as a web server and I had to use port forwarding and a DDNS. Now I was reading about different libraries (easyMesh, PainlessMesh, etc), but I'm a bit lost and don't know which one to use and how to do it. I want (if it's possible) each node to be able to connect to the router and with other node, so if one node gets down the network keeps working.

And I have some questions:
Will each node be working as a web server or I need to have one as web server and communicating to all the others?
Will each one have its own local IP and will I need to use port forwarding on each IP to have acces from an external connection?

I think thats all. Thaks in advance.

Fabri
User avatar
By airnow
#76328 I am a newbie too. But your question is more network related an not so much about how the ESP works. If you know how networks work you should be able to answer this question.

However, basically you said you want to control each node. So that means each node needs to be listening on the network for a command. So that means each node would be in server mode.
User avatar
By Fabri
#76410
airnow wrote:I am a newbie too. But your question is more network related an not so much about how the ESP works. If you know how networks work you should be able to answer this question.

However, basically you said you want to control each node. So that means each node needs to be listening on the network for a command. So that means each node would be in server mode.


Hello and thaks for the answer.

Yes, that's what I want to do and I have just a basic knowledge in networks. I need to know if there is an Arduino library made for this kind of network (or another way to do it), because apparently easyMesh/PainlessMesh is not capable of create a mesh network that connects directly to a router.

In a few words I need to control each node from the internet.