[ANSWERED]Is there "Chromecast" syle wifi configuration code #5471
Replies: 1 comment
-
Posted at 2016-04-12 by @gfwilliams I don't think I have seen anyone do this with Espruino (I think @tve did it with esp-link), but it shouldn't be too hard - just a few lines of code. Would this be with an Espruino board + ESP8266, or with Espruino running on the ESP8266 itself? If you need some ideas of how to get started, let us know! I'd consider maybe using the Posted at 2016-04-12 by Will Espruino on ESP8266. I am thinking of having a small switch on one of the GPIO to put it into station mode, then allow user to connect via phone/laptop to set the wifi credentials of the wifi router. I'll post the code once I am done. Posted at 2016-04-13 by @gfwilliams On ESP8266 you can make it remember the Wifi details itself, so actually it should be pretty easy to get working (without FlashEEPROM). I believe ESP8266 can be an AP and can connect to another AP at the same time, so you could just leave the AP mode on all the time rather than needing a button. Posted at 2016-04-27 by Will Can someone direct me to an example using ESP8266 as access point? As near as I can tell, I am unable to get DHCP to return an IP address for my phone. It doesn't stay connected long enough for me to get to the 192.168.4.1 page. Here are what my settings look like:
Posted at 2016-04-27 by @gfwilliams I'll move this to the ESP8266 forum section - I think you might have more luck there... Posted at 2016-04-27 by Will Does the AP code have something equivalent to the arduino code to start DHCP?
Posted at 2016-04-30 by Will I found a project on github with similar goals. My "goal" will be to merge in a folder with same code, but for Espurino/ESP8266. Posted at 2016-05-04 by MrTimcakes I'm working on something like this, what would be the best way to send the result of wifi.scan back to the browser? You couldn't just add it in the page request as its Async and needs a callback, perhaps a global to keep track of the Scan, run once on startup then again after every request? Posted at 2016-05-05 by Will I think you have to make the async call when an initial page is called, then present the list when user clicks a button on a 2nd page. Posted at 2016-05-05 by @gfwilliams I think you can just delay sending
Just to give you an idea - I doubt the command-names are right in that code : Posted at 2016-05-05 by MrTimcakes Brilliant idea, I'll try this method out later, I didn't know you could just delay END, Thanks. Posted at 2016-05-09 by Will I am in the last stages of testing my project, code is here. To power a ATX power supply put the GPIO2 to pin 16 on ATX power supply and this will turn it on. Posted at 2016-05-23 by Will I've solved the problem. I now can write applications that allow ESP to get it's SSID/pass from the users. Might later add ability to "scan" available AP's, but content with this for now. Feel free to share: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-04-12 by Will
Has someone put into their project a way to initially have their device first run as a host / access point and receive wifi information for subsequent bootup into client/station mode?
This is similar to how you first setup a chromecast to go onto your wifi. Application of this would be to allow your "station device" to be deployed to different wifi routers.
Beta Was this translation helpful? Give feedback.
All reactions