As the title says... Chat on...

User avatar
By Finnduino
#10784 Maybe beginners question, but is it possible to create a LUA script so that
1) one esp8266 A module would be AP named "esp"
2) second esp8266 B would be client and connect to "esp", and send some data for example temperature
3) immediately after first esp8266 A has received data from second module B it would change it's mode from AP to client and connect to my main 3G-router and report measurements to outside world
4) after successful delivery to outside world module A would switch from client back to AP named "esp"and listen if B would connect to it

Is this good or bad idea? Or is it better to wait and look if some good coders can create mesh networks with esp8266?

I was planning to modify this:
https://github.com/nodemcu/nodemcu-firmware/issues/102
User avatar
By alonewolfx2
#10825 firstly you dont need change ap and sta mode for server. it can work sta-ap mode. mean if b connect and send data to a server , a can send data your main server.
User avatar
By chandan2002x
#10996 Why not to try the binaries at
viewtopic.php?f=6&t=903&start=60
The ESP forming mesh.
To test, flash the binary in three four ESP.
place them as
Just switch-on the devices after gap of 10-15 sec.

Now check the connectivity by issuing AT+CIPSTATUS.
Send command AT+PINGROOT to send data (static for now) to Root.