Connect two ESP8266 to each other #445

Open
goatchurchprime opened this Issue Feb 11, 2017 · 0 comments

Projects

None yet

3 participants

@goatchurchprime
Contributor

The code in https://bitbucket.org/goatchurch/esp8266cavelogger/src/
which is S20endpoint (in the S20 plug) and S20director (in a second ESP with a switch)
connect to one another through the DoES wifi network because we can't get them to connect directly to each other.

We were able to set one of them as a wifi hotspot and have our phone connect to it and control the S20 socket with 192.168.4.1/plug=1

However, it was impossible to connect this one-unit (which was visible in the sf.scan() list) without getting a "STAT_NO_AP_FOUND – failed because no access point replied" error
https://docs.micropython.org/en/latest/esp8266/library/network.html

In the end we were able to connect both to the DoES network and from one to another via its dynamic IPnumber (now it is 192.168.0.162).

Ideally we need to be able to connect from one to another directly with predictable IPnumbers so that this 2 unit network can take its pairing out into the big wide world. If everyone keeps the default wifi password, then this will work with scanning and name matching to "MicroPython-.*" wifi hotspots

More info here:
https://micropython.org/resources/docs/en/latest/wipy/wipy/tutorial/wlan.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment