Skip to content

Wi-Fi access point with a web server for static sites, emulation of http/https pages, and work with files from a memory card / Wi-Fi точка доступа, с веб-сервером статичных сайтов, эмуляцией http/https страниц, а также работой с файлами карты памяти

License

Notifications You must be signed in to change notification settings

r57zone/TheLastHostESP32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EN RU ← Choose language | Выберите язык

The Last Host (ESP32 C3 Mini + SD Adapter)

Wi-Fi access point with a static site web server, http/https page emulation, and file operations on the SD card. Host static websites, emulate basic authentication, various services, and simple APIs, and share files across different devices within a dedicated Wi-Fi network.

Features

  • Wi-Fi access point mode; SSID and password can be changed in the file Setup.ini on the SD card;
  • Static site web server with support for any domains. Domains and folders are listed in the file Hosts.txt. To open the domain as a website rather than a folder of files, place the index.html file in the root directory;
  • Emulation of individual http/https web pages, sites. Specify in the file Emulation.txt the list of pages, URLs, http status codes, response types, and the response itself as a file or string. To get the required values and addresses, use Wireshark on Windows and PCAPdroid on Android (with Wireshark). Don’t forget to share popular emulations;
  • File management on the SD card: create folders, upload files, and delete them;
  • Logging device requests to the file Logs.txt. To enable it, set the parameter logs to 1 in the Setup.ini file;

Plans

  • Connection to external Wi-Fi networks;
  • Security certificates for HTTPS on the SD card;
  • Fixing bugs with names (probably URL encoding issues);

Wiring Diagram

Firmware

  1. Install Arduino IDE.
  2. Go to ToolsManage Libraries... and install the esp32 library by Espressif System, version 2.0.6 (this older version is important for HTTPS support). If a newer version is installed, remove it and install the old one.
  3. Extract the ESP32 HTTPS Server into the folder: %userprofile%\AppData\Local\Arduino15\libraries.
  4. Go to ToolsBoardesp32ESP32C3 Dev Module and select the board's COM port.
  5. Flash the sketch.
  6. Format the SD card to FAT32 using Rufus or another utility, and extract the contents of the SDCard folder to SD card.
  7. Connect to the Wi-Fi network TheLastHost with the password 12345678 and go to http://i.me or http://192.168.4.1.
  8. Edit the configuration files: Setup.ini, Hosts.txt, Emulation.txt.

Web interface

WebUI

Feedback

r57zone[at]gmail.com

About

Wi-Fi access point with a web server for static sites, emulation of http/https pages, and work with files from a memory card / Wi-Fi точка доступа, с веб-сервером статичных сайтов, эмуляцией http/https страниц, а также работой с файлами карты памяти

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages