SHA1.h no such file diecotry
You're right - the SHA1.h library isn't included by default. Let's modify the code to implement SHA1 directly without requiring external libraries:
esp32-websocket-server-with-wifimanager-fixed.ino
This implementation now includes a custom SHA1 and Base64 implementation directly in the code, eliminating the need for external libraries. The WiFi Manager functionality allows the ESP32 to:
To use this code:
using instance of spiffs using littlefs
Let's modify the code to use LittleFS instead of SPIFFS:
esp32-websocket-server-with-littlefs.ino
This code now uses LittleFS instead of SPIFFS for file storage. LittleFS is the recommended file system for ESP32 as SPIFFS is being deprecated. The changes include:
<SPIFFS.h> to <LittleFS.h>SPIFFS references with LittleFS throughout the codeThe functionality remains the same, but now it's using the more modern and efficient file system. To use this code:
create lib for wifimanager included wifimanager reset and websocket lib (lib name are fms_wifimanager and fms_websocket, included change html file upload and download ui file