Luck of example how to connect mesh network to wifi-router and internet

1,526 views
Skip to first unread message

Oleksii

unread,
Jul 8, 2019, 6:50:45 AM7/8/19
to painlessmesh-user
I was able to run mesh network. But I do not see example(s) or information which will explain how at least one of nodes of this mesh network can connect to Internet (trough wifi-router) and send/receive requests to Internet resource(s) like:
http.begin("http://google.com");
http.GET();

This should allow me to forward all required requests from all (or part of) mesh network to this particular node and to Internet returning received response back to the initial node.

Is it possible at all?
Thank you very much.

Lesept

unread,
Jul 8, 2019, 10:32:55 AM7/8/19
to painlessmesh-user
I recently did such a program : an ESP32 runs a webserver and is part of a mesh made with painless mesh.
Information from other nodes of the mesh are sent to the ESP32 and displayed on a web page accessible from my cellphone either on my wifi network or outside.

The webserver part is based on this example and this one, the web page is based on this one and the mesh is based on the examples of the painless mesh library

Oleksii

unread,
Jul 8, 2019, 2:00:24 PM7/8/19
to painlessmesh-user
Yes, @Lesept, you explain something similar to example of painlessmesh located in webServer.ino
But, can it be not a web server, but access some web page in Internet as client?

Lesept

unread,
Jul 8, 2019, 4:39:39 PM7/8/19
to painlessmesh-user
Yes actually, you can find tutorials on the net dealing with this. Just add the painless mesh instructions to the rest of your sketch.

Lesept

unread,
Jul 9, 2019, 4:13:23 AM7/9/19
to painlessmesh-user
Here is a link to a tutorial for ESP8266 : hope it helps.

Prabhu R

unread,
Feb 18, 2020, 5:22:04 AM2/18/20
to painlessmesh-user
Hi Friend ,
In above question are you tried or not.We need only the answer not an idea.
Please answer for whether the http request on end node will able to send or not.


Brian Canning

unread,
Feb 19, 2020, 12:21:53 PM2/19/20
to painlessmesh-user
As a side note, have you noticed if you use an IP address in the http.begin(IP_ADDRESS); that it fails?
Reply all
Reply to author
Forward
0 new messages