Chat freely about anything...

User avatar
By DonFrench
#47834 Hi! This is my first post to this group and I do not yet posses a ESP8266, so please excuse my ignorance. What I would like to know is if it is possible to do the following with a ESP8266. I want to be able to use a browser on my phone to connect to a microcontroller inside of a gadget of my design. So the phone would be physically close to the microcontroller but both the phone and the gadget would be out of range of any wifi router. I need the microcontroller to serve up a web page with a data entry form that I can use to set some variables for controlling the gadget. Can I do this with a ESP8266? Does software exist to make the ESP8266 serve up web pages? And if so, how does the phone connect to gadget? What URL would I enter into my phone's browser, for example? Finally, if this is not possible with a ESP8266, is there some other device that I could use? Thanks for any help or advice.
User avatar
By MarkR
#48085 The ESP can be its own wifi access point, so probably, yes you can do it with the 8266. You'd connect your phone to the wifi access point (but which won't give internet access) then enter an address like http://10.0.0.1/ or something into the web browser.

I use Micropython, and there is an example web server here:

http://docs.micropython.org/en/latest/e ... ttp-server

You will need to combine with the code to setup an accesspoint.

If you use another microcontroller with the esp8266, you will need to communicate with that via some protocol (e.g. with the rx/tx pins or gpios) or talk to your hardware with i2c or something else.