![]() ![]() Ignore if it request the favicon.ico (very annoying, chrome sends a request for every refresh of the page – arrrhh), simple display the website if it’s a simple “/get” as if you are accessing the webserver, and if there is a question mark character store the data using the sort_data function. The function “get_data” is very simple and reads what comes out after the /get request. I won’t post here the full code because i will upload the file and you can also find the simple webserv on rayshobby. I did this to learn how to use forms with GET method to send and receive data (to fiddle with sensors, use it to turn LEDs on and off, etc). In this sketch it just shows the same webpage again. After this you can do all sort of things. Here you will see a very simple webpage where you enter the SSID and password of your wifi network, and then it connects to it. Well, it first boots up as an AP (access point), you connect to it (just like you connect to your wifi, it should be named something like ESP-?) and access in your browser 192.168.4.1. What my sketch basically does you might ask? Most credits go to this guy, where i got the basics. ![]() I have a present for you.Ī sketch with a simple modified webserver for the ESP8266 AT firmware using an arduino. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |