New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect two ESP8266 to each other #445

Closed
goatchurchprime opened this Issue Feb 11, 2017 · 1 comment

Comments

Projects
None yet
4 participants
@goatchurchprime
Copy link
Contributor

goatchurchprime commented Feb 11, 2017

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

@goatchurchprime

This comment has been minimized.

Copy link
Contributor

goatchurchprime commented Dec 7, 2018

Out of date

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