A demo fullstack web application for the ESP8266
Posted: Fri Jul 31, 2015 4:46 am
The project is a simple fullstack app hosted on the ESP8266. The idea is that you can control cheap RF switches with an html user interface. The UI is built using AngularJS and Angular Material. All data is saved to the “eeprom” and the wifi setup can be done in the AP mode.
I bought my first ESP8266 boards already half a year ago but really didn’t have time to play around with them until now. This project is not really useful in real life as the 433mhz transmitter range is limited to a few meters but instead I made it just to see what can be done with the chip. The ESP8266 is sometimes a bit unreliable and every now and then it decides to just cut the connection short leaving an empty HTTP response.
I tried to follow the Arduino way of doing things and placed all Arduino code in .ino files. To be honest I’m not sure was this the best approach. Traditional C++ classes could have done a better job.
The source code can be found at github. If you are not interested in getting the build process working you can just install the required libraries and download the content of the dist/server folder and open it in the Arduino IDE and upload the sketch manually. Even if you don’t have the 433mhz transmitter you can still try it out without it.
I'm using a dev board that has ESP8266-03 installed but I see no reason why it wouldn't work on any model. It can also be set up to run on other Arduino boards using the Ethernet library.
I'm realy happy how well the ESP8266 port of Arduino is working. A big thank you!
Your feedback is highly appreciated
I bought my first ESP8266 boards already half a year ago but really didn’t have time to play around with them until now. This project is not really useful in real life as the 433mhz transmitter range is limited to a few meters but instead I made it just to see what can be done with the chip. The ESP8266 is sometimes a bit unreliable and every now and then it decides to just cut the connection short leaving an empty HTTP response.
I tried to follow the Arduino way of doing things and placed all Arduino code in .ino files. To be honest I’m not sure was this the best approach. Traditional C++ classes could have done a better job.
The source code can be found at github. If you are not interested in getting the build process working you can just install the required libraries and download the content of the dist/server folder and open it in the Arduino IDE and upload the sketch manually. Even if you don’t have the 433mhz transmitter you can still try it out without it.
I'm using a dev board that has ESP8266-03 installed but I see no reason why it wouldn't work on any model. It can also be set up to run on other Arduino boards using the Ethernet library.
I'm realy happy how well the ESP8266 port of Arduino is working. A big thank you!
Your feedback is highly appreciated