-->
Page 1 of 2

Webserver and client to allow configuration

PostPosted: Thu Apr 23, 2015 1:06 am
by Mike Bedford
Hello all! So, I am brand new to this device and here is what I am wanting to try to acheive with it. I would like to set it to be an AP and a client. I am going to use it with an Arduino and allow the Arduino to datalog to my website some sensor data. I have all of that figured out. However, to do that, I obviously need to connect the ESP8266 to my wifi network as a client so it can access my webpage API. I can find examples to get me through that.

What I want to do though is have the ESP8266 also server as an AP that a client can connect to and get a webpage served. This will then allow you to setup the wifi connection via the webpage/AP from the ESP8266. For example, if anybody is familar with Chromecast, when you get a new chromecast, it is an AP that you can find on your network and connect to first so you can access it and then configure it to connect to your network. This will make it easy for an end user to connect to a wifi network using a web based configuration that is served by the AP/ESP8266. For example, you want to connect to a new network, simply connect to the known AP SSID that is served from the ESP8266 so you know how to access it anytime and then view the webpage which will allow you to then see/edit the wifi settings, see list of networks, connect to network, etc...

Any thoughts or guidance would be appreciated! Thanks!

Mike

Re: Webserver and client to allow configuration

PostPosted: Tue Apr 28, 2015 1:58 am
by mohsen
hi mike bedford;
How to be associated esp8266 with server?

Re: Webserver and client to allow configuration

PostPosted: Tue May 05, 2015 5:02 am
by Caer
Hi Mike,

Do you plan to use the SDK or the AT commands?
In the former case you should start with esphttpd to handle the AP and Wifi configuration.
Then add esphttpclient to send data to your website.

Good luck!

Re: Webserver and client to allow configuration

PostPosted: Mon May 11, 2015 8:42 am
by ajrkerr
Interesting, also inspired by the Chromecast configuration I built this over the weekend in C. https://github.com/ajrkerr/esp8266

My endgame is to combine this with some more code to make a REST API for controlling strips of WS2812.