• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Build Web Servers with the ESP32 and ESP8266 – 1.2 Hello World Web Server – main.html ?

Q&A Forum › Category: ESP32 › Build Web Servers with the ESP32 and ESP8266 – 1.2 Hello World Web Server – main.html ?
0 Vote Up Vote Down
Kali Yuga asked 5 years ago

I just spent 30 minutes trying to figure out why I couldn’t get Lesson 1_2_Hello_World_Web_Server (Server Files from Filesystem) to work.

Pages 172 & 173 says….

“Then, select the newly created data folder and create two files inside by clicking on
the New File icon.

One file should be called main.html and the other style.css.
You can give these files any other names as long and they have the .html and .css
extensions. However, we recommend using these exact names, otherwise you also
need to change the main.cpp file to make the web server work.”

However, mine would only work by naming the .html file

index.html

The PDF book source code for main.cpp has it ‘index.html’, do does the main.cpp in the downloadable resource.

1 Answers
0 Vote Up Vote Down
Kali Yuga answered 5 years ago

You need to name the HTML file
index.html 
if you plan to copy the source code for main.cpp from the book or if you download the main.cpp resource file.

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.