Chat freely about anything...

User avatar
By panagorn
#47640 Hello,

I am new to ESP8266 programming. I want to ask if it is possible to have a communication between 2 ESP8266 without connecting them to the internet. If it is possible do I have to connect them to a router or something? Any example would be appreciated.

Thank you
User avatar
By steelkite
#47718 The answer is yes.
The example however would be specific to your need and require me to code it for you which I am too busy to do at this moment. The esp's can simultaneously be stations and servers, as I am running for my applications. Just address the private ip of each device and use WebSockets or http to start with.
User avatar
By rudy
#47742 I have been using a router as my "network". While there is no internet I still can connect with my tablet. (running Windows 10) I have my ESP devices connect to this network. I have run a few of the web server sketches. One uses websockets, https://gist.github.com/bbx10/667e3d4f5f2c0831d00b . I have used the example sketch FSBrowser and WiFiScanner, a captive portal sketch, all without an internet connection.

There are sketches that will allow a connection between two different ESPs without the need for the router. I have not tried them yet.