Build Web Servers with ESP32 and ESP8266 eBook (2nd Edition)
About the eBook
The boards will be programmed using the Arduino “programming language” and we’ll use Visual Studio Code + PlatformIO IDE to program the boards. The eBook also provides instructions on how to proceed if you want to use Arduino IDE instead.
The resources in this eBook are compatible with both ESP32 and ESP8266 NodeMCU boards.
- HTML to define the content of web pages
- CSS to style the web pages
- Client-server communication protocols to interact between the browser and the ESP
This eBook walks you through building web pages with practical examples that you can follow along and test in real time.
If you want to control the ESP boards GPIOs or display sensor readings using a web server, this is the perfect chance for you to learn how to do it from scratch.
What’s inside the eBook?
The “Build Web Servers with the ESP32 and ESP8266” is an eBook with 3 Modules and approximately 600 pages long:
- Module 1: Installing and Getting Started with VS Code + PlatformIO
- Module 3: Build ESP32 and ESP8266 web servers (17 step-by-step projects)
Here’s what you’ll have access when you get the eBook:
- eBook in PDF format (3 Modules, 600 pages, 17 web server projects)
- Source Code + Project Files + Schematic Diagrams
- Unlimited Free Updates (includes future eBook updates)
- Access to a private Forum to ask questions
- Exclusive access to our Facebook group community
What you’ll learn:
- Use VS Code with PlatformIO IDE extension to program the ESP32 and ESP8266;
- Upload files to the ESP32 and ESP8266 filesystem using VS Code + PlatformIO IDE;
- There are optional instructions on how to proceed if you want to use Arduino IDE;
- Use different client-server communication protocols: HTTP polling, WebSocket and Server-Sent Events;
- Use different HTML elements to control outputs: buttons, toggle switches and sliders;
- Display sensor readings on the web pages in paragraphs, tables and charts;
- Add user input fields to save parameters;
- Create a WiFi Manager for your web servers;
- Add OTA (over-the-air) capabilities to your projects;
- Serve multiple web pages and create a navigation bar;
- And much more…
Continue reading for the complete Table of Contents…
Module #0: Introduction
Module #1: Installing Tools
Install all the tools required throughout the eBook: Visual Studio Code, PlatformIO IDE Extension and Arduino IDE (not mandatory).
- Installing VS Code + PlatformIO IDE
- Installing Arduino IDE
- Getting Started with HTML
- Styling HTML Content with CSS
Module #3: ESP32 and ESP8266 Web Servers
Learn how to build web server projects with the ESP32 and ESP8266 boards to control outputs and monitor sensors remotely. You will create web pages to control outputs (buttons, toggle switches, and slider) and display sensor readings (text, tables and charts).
Add user input fields to save parameters, create a Wi-Fi Manager, add OTA (over-the-air) capabilities to your projects and serve multiple web pages with navigation bar.
You’ll also learn different client-server communication protocols: HTTP requests, WebSocket and Server-Sent Events (SSE).
- Introducing Web Servers
- 1.1 – Hello World Web Server
- 1.2 – Hello World Web Server (Serve Files from Filesystem)
- 1.3 – Hello World Web Server (Arduino IDE Software)
- 2.1 – Web Server – Control Outputs (ON/OFF Buttons)
- 2.2 – Web Server – Control Multiple Outputs (Toggle Switches)
- 2.3 – WebSocket Web Server: Control Outputs (ON/OFF Buttons)
- 2.4 – Web Server with Slider: Control LED Brightness (PWM)
- 2.5 – WebSocket Web Server: Control Multiple Outputs
- 3.1 – Web Server: Display Sensor Readings (SSE)
- 3.2 – Web Server: Display Sensor Readings (Table)
- 3.3 – Web Server: Display Sensor Readings (Charts)
- 3.4 – Web Server: Display Sensor Readings from File (Charts)
- 4.1 – Web Server with Input Fields (HTML Form)
- 4.2 – HTTP Authentication: Password Protected Web Server
- 4.3 – Wi-Fi Manager for Web Server
- 4.4 – Multiple Web Pages (with Navigation Bar)
- 4.5 – Over-the-air (OTA) Updates for Web Server
We provide all the needed files to build the project examples (for the ESP32 and ESP8266 boards).
Extra Units – Useful Resources
- Setting the ESP32 and ESP8266 as an Access Point
- ESP32/ESP8266 Static IP Address
What do you need to follow the eBook?
To follow the projects in the eBook you can either use an ESP32 or ESP8266 board. We usually use the ESP32 DEVKIT DOIT board, but you can use any other ESP32 board.
As for the ESP8266, we use the ESP8266-12E NodeMCU Kit, but once again you are free to use any other ESP8266 board.
The projects throughout this eBook don’t require an extensive list of parts. You just need some LEDs and resistors, jumper wires, a breadboard and a BME280 sensor. Then, you should be able to modify the projects to control other outputs and use any other sensors or inputs.
The ESP32 and ESP8266 boards are programmed using the Arduino “programming language”. To program the boards we’ll use Visual Studio Code with the PlatformIO IDE extension. Visual Studio Code is free and runs on Windows, Linux and Mac OS X operating systems.
Why VS Code + PlatformIO IDE?
The Arduino IDE works great for small applications. However, for advanced projects with more than 200 lines of code, multiple files, and other advanced features like auto completion and error checking, VS Code with the PlatformIO IDE extension is the best alternative.
Additionally, it is easier to manage libraries and you won’t have trouble with missing dependencies which happens often when using Arduino IDE.
Who is this eBook for?
Invitation to Join our Private Forum!
This eBook comes with an opportunity to join our private Forum of like-minded people where you can ask questions about the eBook or other related subjects. You’ll get direct help from Rui and Sara or from other active members of the community.
Download the eBook
- NEW version released 2021
- PDF eBook with 600 pages
- Step-by-step instructions
- Code explanation
- Unlimited Updates
- Exclusive access to a Private Forum
- English language
- Created by Rui Santos and Sara Santos
Click here to get the eBook | $30 USD
Note: after your purchase, you receive an email with a username and password that you use to access the members area and download the PDF eBook.
Have questions? Email me at https://randomnerdtutorials.com/support anytime for any reason.
You won’t regret it. My 60 day money back guarantee backs up every word in this message. Proceed with confidence. See you inside,
Backed by a 60 day 100% money-back guarantee
If you don’t like the course, I don’t want your money. Seriously, that’s why I offer a 60 days money back guarantee. Email me here and I will promptly refund all your money. No questions, no hassles – it’s that simple.
Frequently Asked Questions
Each project provides the code and all the necessary resources for both the ESP32 and ESP8266 boards. So, you can follow the projects using either one.
Yes. We recommend using VS Code with PlatformIO IDE extension, but you can use Arduino IDE. We provide all the necessary instructions if you want to stick with Arduino IDE.
Yes, I often update all my eBooks, so everyone who purchases gets free lifetime updates. You’ll also have access to future content that we’ll add to the eBook.
Well, if you don’t like it, I don’t want your money. Seriously, that’s why I offer a 60 days money back guarantee. Email me here and I will promptly refund all your money. No questions, no hassles – it’s that simple!
The eBook is only available in English language.
If you still have questions after reading this page please email me here. I’ll do my best to answer your questions.
Meet the Authors
Hey there, I’m Rui Santos, founder of the Random Nerd Tutorials blog. For the last couple of months we’ve been working on this new eBook dedicated to building web servers for the ESP32 and ESP8266. This eBook is our complete guide to take the most out of the ESP boards to control outputs and monitor sensors remotely. If you like my work, you’ll certainly like “Build Web Servers with ESP32 and ESP8266” eBook.
See what others are saying
Thank you Rui. Anyone wondering whether you bring value can rely on my word. I’ve purchased hundreds of books over a 45 year career as engineer and entrepreneur. NONE of these books have approached your excellent method of teaching a subject. You have a rare gift as a teacher. Glad to have made the purchases.
Hi, just wanted to pass on my thanks. I have bought 2 of your courses and looked at and use some of your tutorials. What I want to say is THANKS for all your projects. All of your projects I used have actually worked and I have learnt a lot.
Peter Drew, from UK
Your tutorials are easy to read, full of detail, filled with useful tips and an excellent basis and lookup for my own projects. Well done Rui and co. Keep up the good work.
Thanks! I would personally like to thank you for the group courses. I find them very educational and entertaining. The courses are well worth the money. Thank you both for all the hard work. Keep it up.
Joe Statzer, from US
Hi, I love your eBooks and courses – everything has worked perfectly. I have lots of new ideas. Thanks!
After struggling for days with various other ESP8266 projects, your server worked “right out of the box” to my amazement (and that of my skeptical wife). Great boost of confidence. Thanks for the very clear and thorough, yet easy to follow instructions and illustrations.
AS SEEN ON…