ESP32 web server; creates WiFi channel but does not load web pages

ESP32 web server; creates WiFi channel but does not load web pages; changing channel did not fix problem; changing IP address, still not loading web pages on either cell phone or laptop; Arduino 1.8.19, board manager esp32 2.0.5; ESP32-WROOM-DA Module, default 4MB, 240MHz, 4MB, core 1 
 #include <FastLED.h> #if defined(FASTLED_VERSION) && (FASTLED_VERSION < 3003000) #warning "Requires FastLED 3.3 or later; check github for latest code." #endif #include <WiFi.h> #include <WebServer.h> #include <FS.h> #include <SPIFFS.h> #include <EEPROM.h> WebServer webServer(80); const char* ssid = "JailCell"; const char* password = "1234567890"; const int channel = 10; const bool hide_SSID = false; IPAddress local_ip(192,168,55,1); IPAddress gateway(192,168,55,1); IPAddress subnet(255,255,255,0); const int led = 5; uint8_t autoplay = 0; uint8_t autoplayDuration = 10; unsigned long autoPlayTimeout = 0; uint8_t currentPatternIndex = 0; uint8_t gHue = 0; uint8_t power = 1; uint8_t brightness = 8; uint8_t speed = 30; uint8_t cooling = 50; uint8_t sparking = 120; CRGB solidColor = CRGB::Blue; uint8_t cyclePalettes = 0; uint8_t paletteDuration = 10; uint8_t currentPaletteIndex = 0; unsigned long paletteTimeout = 0; #define ARRAY_SIZE(A) (sizeof(A) / sizeof((A)[0])) #define DATA_PIN 18 #define LED_TYPE WS2812 #define COLOR_ORDER GRB #define NUM_STRIPS 1 #define NUM_LEDS_PER_STRIP 64 #define NUM_LEDS NUM_LEDS_PER_STRIP * NUM_STRIPS CRGB leds[NUM_LEDS]; #define MILLI_AMPS 1600 #define FRAMES_PER_SECOND 120 #include "patterns.h" #include "field.h" #include "fields.h" void listDir(fs::FS &fs, const char * dirname, uint8_t levels) { Serial.printf("Listing directory: %s\n", dirname); File root = fs.open(dirname); if (!root) { Serial.println("Failed to open directory"); return; } if (!root.isDirectory()) { Serial.println("Not a directory"); return; } File file = root.openNextFile(); while (file) { if (file.isDirectory()) { Serial.print(" DIR : "); Serial.println(file.name()); if (levels) { listDir(fs, file.name(), levels - 1); } } else { Serial.print(" FILE: "); Serial.print(file.name()); Serial.print(" SIZE: "); Serial.println(file.size()); } file = root.openNextFile(); } } void setup() { pinMode(led, OUTPUT); digitalWrite(led, 1); Serial.begin(115200); Serial.println("\n[*] Creating AP"); SPIFFS.begin(); listDir(SPIFFS, "/", 1); WiFi.mode(WIFI_AP); WiFi.softAPConfig(local_ip, gateway, subnet); WiFi.softAP(ssid, password, channel, hide_SSID); delay(2000); // to avoid crash on WiFi connection Serial.print("[+] AP Created with IP Gateway "); Serial.println(WiFi.softAPIP()); setupWeb(); FastLED.addLeds<LED_TYPE, DATA_PIN, COLOR_ORDER>(leds, NUM_LEDS).setCorrection(TypicalLEDStrip); FastLED.setMaxPowerInVoltsAndMilliamps(5, MILLI_AMPS); FastLED.setBrightness(brightness); autoPlayTimeout = millis() + (autoplayDuration * 1000); } void setupWeb() { webServer.on("/all", HTTP_GET, []() { digitalWrite(led, 0); String json = getFieldsJson(fields, fieldCount); webServer.send(200, "text/json", json); digitalWrite(led, 1); }); webServer.on("/fieldValue", HTTP_GET, []() { digitalWrite(led, 0); String name = webServer.arg("name"); String value = getFieldValue(name, fields, fieldCount); webServer.send(200, "text/json", value); digitalWrite(led, 1); }); webServer.on("/fieldValue", HTTP_POST, []() { digitalWrite(led, 0); String name = webServer.arg("name"); String value = webServer.arg("value"); String newValue = setFieldValue(name, value, fields, fieldCount); webServer.send(200, "text/json", newValue); digitalWrite(led, 1); }); webServer.serveStatic("/", SPIFFS, "/index.htm", "max-age=86400"); webServer.serveStatic("/index.htm", SPIFFS, "/index.htm", "max-age=86400"); webServer.serveStatic("/favicon.ico", SPIFFS, "/favicon.ico", "max-age=86400"); webServer.serveStatic("/css/styles.css", SPIFFS, "/css/styles.css", "max-age=86400"); webServer.serveStatic("/js/app.js", SPIFFS, "/js/app.js", "max-age=86400"); webServer.serveStatic("/images/atom196.png", SPIFFS, "/images/atom196.png", "max-age=86400"); webServer.begin(); Serial.println ( "HTTP server started" ); } void handleWeb() { static bool webServerStarted = false; // check for connection if ( WiFi.status() == WL_CONNECTED ) { if (!webServerStarted) { // turn off the board's LED when connected to wifi digitalWrite(led, 1); Serial.println(); Serial.println("WiFi connected"); Serial.print("IP address: "); Serial.println(WiFi.localIP()); webServerStarted = true; setupWeb(); } webServer.handleClient(); } else { // blink the board's LED while connecting to wifi static uint8_t ledState = 0; EVERY_N_MILLIS(125) { ledState = ledState == 0 ? 1 : 0; digitalWrite(led, ledState); Serial.print ("."); } } } void loop() { handleWeb(); if (power == 0) { fill_solid(leds, NUM_LEDS, CRGB::Black); } else { patterns[currentPatternIndex].pattern(); EVERY_N_MILLISECONDS(40) { nblendPaletteTowardPalette(currentPalette, targetPalette, 8); gHue++; } if (autoplay == 1 && (millis() > autoPlayTimeout)) { nextPattern(); autoPlayTimeout = millis() + (autoplayDuration * 1000); } if (cyclePalettes == 1 && (millis() > paletteTimeout)) { nextPalette(); paletteTimeout = millis() + (paletteDuration * 1000); } } FastLED.show(); FastLED.delay(1000 / FRAMES_PER_SECOND); } void nextPattern() { currentPatternIndex = (currentPatternIndex + 1) % patternCount; } void nextPalette() { currentPaletteIndex = (currentPaletteIndex + 1) % paletteCount; targetPalette = palettes[currentPaletteIndex]; } 

monitor output:

 11:51:57.734 -> rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) 11:51:57.734 -> configsip: 0, SPIWP:0xee 11:51:57.734 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 11:51:57.734 -> mode:DIO, clock div:1 11:51:57.734 -> load:0x3fff0030,len:1344 11:51:57.734 -> load:0x40078000,len:13864 11:51:57.734 -> load:0x40080400,len:3608 11:51:57.767 -> entry 0x400805f0 11:51:58.000 -> [1][V][WiFiServer.h:42] WiFiServer(): WiFiServer::WiFiServer(port=⸮brrrJj 11:51:58.000 -> [1][V][WebServer.cpp:87] WebServer(): WebServer::Webserver(port=80) 11:51:58.034 -> [7][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz 11:51:58.034 -> 11:51:58.034 -> [*] Creating AP 11:51:58.167 -> Listing directory: / 11:51:58.352 -> FILE: app.js SIZE: 13101 11:51:58.352 -> FILE: favicon.ico SIZE: 4286 11:51:58.352 -> FILE: atom196.png SIZE: 5469 11:51:58.352 -> FILE: styles.css SIZE: 31 11:51:58.352 -> FILE: index.htm SIZE: 10733 11:51:58.352 -> [307][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 0 - WIFI_READY 11:51:58.394 -> [395][I][WiFiGeneric.cpp:1354] setDualAntennaConfig(): TX Antenna will be automatically selected 11:51:58.401 -> [395][V][WiFiGeneric.cpp:390] _arduino_event_cb(): AP Started 11:51:58.438 -> [396][V][WiFiGeneric.cpp:97] set_esp_interface_ip(): Configuring SoftAP static IP: 192.168.55.1, MASK: 255.255.255.0, GW: 192.168.55.1 11:51:58.438 -> [399][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 10 - AP_START 11:51:58.438 -> [418][V][WiFiGeneric.cpp:143] set_esp_interface_ip(): SoftAP: 192.168.55.1 | Gateway: 192.168.55.1 | DHCP Start: 0.0.0.0 | Netmask: 255.255.255.0 11:51:58.438 -> [431][V][WiFiGeneric.cpp:190] set_esp_interface_ip(): DHCP Server Range: 192.168.55.2 to 192.168.55.12 11:52:00.463 -> [+] AP Created with IP Gateway 192.168.55.1 11:52:00.463 -> [2442][V][RequestHandlersImpl.h:73] StaticRequestHandler(): StaticRequestHandler: path=/index.htm uri=/ isFile=1, cache_header=max-age=86400 11:52:00.463 -> 11:52:00.463 -> [2446][V][RequestHandlersImpl.h:73] StaticRequestHandler(): StaticRequestHandler: path=/index.htm uri=/index.htm isFile=1, cache_header=max-age=86400 11:52:00.547 -> 11:52:00.547 -> [2506][V][RequestHandlersImpl.h:73] StaticRequestHandler(): StaticRequestHandler: path=/favicon.ico uri=/favicon.ico isFile=1, cache_header=max-age=86400 11:52:00.547 -> 11:52:00.547 -> [2510][V][RequestHandlersImpl.h:73] StaticRequestHandler(): StaticRequestHandler: path=/css/styles.css uri=/css/styles.css isFile=1, cache_header=max-age=86400 11:52:00.547 -> 11:52:00.622 -> [2569][V][RequestHandlersImpl.h:73] StaticRequestHandler(): StaticRequestHandler: path=/js/app.js uri=/js/app.js isFile=1, cache_header=max-age=86400 11:52:00.622 -> 11:52:00.622 -> [2573][V][RequestHandlersImpl.h:73] StaticRequestHandler(): StaticRequestHandler: path=/images/atom196.png uri=/images/atom196.png isFile=1, cache_header=max-age=86400 11:52:00.622 -> 11:52:00.622 -> HTTP server started 11:52:00.729 -> ......................................... 

Have you joined the Access point of your ESP 32?
what do you see then if you type http://192.168.55.1/ in your browser?

I don't use this library (I prefer ESPAsyncWebServer on ESP32) but this seems weird:

it seems you have this under the root directory

and you are declaring those paths with webServer.serveStatic()

only the index.htm and favicon.ico seems to be in the right directory (root). You don't have subdirectories

Good evening.
Up front I am not a programmer and have played with a code to tweak it for my needs.
The original code "https://github.com/jasoncoon/esp32-fastled-webserver; Copyright (C) 2017 Jason Coon" is configured for WiFi station mode only. I changed the parameters to softAP and that's where the connection is dropped. The original code had no problem loading on any of my devices. As to what do I see in the web browser---nothing. I do the search for the AP device I created, found and prompted for password. Using a WiFi scanner app I see "JailCell" and it's channel position and relative power. I started with the default channel 1 and IP address; changed those with no improvements----after typing into the browser 192.168.55.1 there is some indication of something attempting to load but never happens...blank page.

Someone else has suggested to move to ESPAsyncWebServer. That has led to other issues for me that I do not understand.

#include <WiFi.h>
#include <AsyncTCP.h>

#include <ESPAsyncWebServer.h>
AsyncWebServer server(80);
#include <FS.h>
#include <SPIFFS.h>
#include <EEPROM.h>

void setupWeb() {
server.on("/all", HTTP_GET, {
digitalWrite(led, 0);
String json = getFieldsJson(fields, fieldCount);
server.send(200, "text/json", json);
digitalWrite(led, 1);
});

server.on("/fieldValue", HTTP_GET, {
digitalWrite(led, 0);
String name = server("name");
String value = getFieldValue(name, fields, fieldCount);
server.send(200, "text/json", value);
digitalWrite(led, 1);
});

server.on("/fieldValue", HTTP_POST, {
digitalWrite(led, 0);
String name = server("name");
String value = server("value");
String newValue = setFieldValue(name, value, fields, fieldCount);
server.send(200, "text/json", newValue);
digitalWrite(led, 1);
});

server.serveStatic("/", SPIFFS, "/index.htm", "max-age=86400");
server.serveStatic("/index.htm", SPIFFS, "/index.htm", "max-age=86400");
server.serveStatic("/favicon.ico", SPIFFS, "/favicon.ico", "max-age=86400");
server.serveStatic("/css/styles.css", SPIFFS, "/css/styles.css", "max-age=86400");
server.serveStatic("/js/app.js", SPIFFS, "/js/app.js", "max-age=86400");
server.serveStatic("/images/atom196.png", SPIFFS, "/images/atom196.png", "max-age=86400");

server.begin();
Serial.println ( "HTTP server started" );
}

And received the following messages;

exit status 1
no match for call to '(AsyncWebServer) (const char [2])'
/home/louis/Arduino/libraries/ESPAsyncWebServer/src/ESPAsyncWebServer.h:426:30: note: candidate expects 5 arguments, 3 provided

/home/louis/Arduino/libraries/ESPAsyncWebServer/src/ESPAsyncWebServer.h:426:30: note: candidate: 'AsyncCallbackWebHandler&
AsyncWebServer::on(const char*, WebRequestMethodComposite, ArRequestHandlerFunction, ArUploadHandlerFunction, ArBodyHandlerFunction)'
AsyncCallbackWebHandler& on(const char* uri, WebRequestMethodComposite method, ArRequestHandlerFunction onRequest, ArUploadHandlerFunction onUpload, ArBodyHandlerFunction onBody);

Referencing to: https://www.dfrobot.com/blog-1172.html

Since you are not a programmer I would not suggest starting with servers. One thing that I definitely see as a problem in your code is that you are creating anonymous functions with braces. In fact the compiler says that this is not how you should do it.

Example in your code:

server.on("/all", HTTP_GET, { digitalWrite(led, 0); String json = getFieldsJson(fields, fieldCount); server.send(200, "text/json", json); digitalWrite(led, 1); }); 

How it should look like:

server.on("/all", HTTP_GET, [](AsyncWebServerRequest* request) { digitalWrite(led, 0); String json = getFieldsJson(fields, fieldCount); request->send(200, "text/json", json); digitalWrite(led, 1); }); 

the [] is a lambda expression that creates a nameless function in this case that accepts an AsyncWebServerRequest pointer, which you have to use to send back information to the client.

Suggestion:
if you are configuring server url variations, use header files, and don't use anonymous functions,
you will get lost very quickly...

suggest to simplify the code so that is simply generates a page saying "hello" or toggle an LED

 server.on ("/led", HTTP_GET, [] (AsyncWebServerRequest *request) { request->send (200, "text/plain", "led toggle"); digitalWrite (PinLedGrn, ! digitalRead (PinLedGrn)); }); 

I agree I need to review and study beginner steps in understanding the AsyncWebServer.

Referencing to the question of the files and sub-directories for the current esp32 webserver the files and sub-folders do exist.
I have attached the monitor outputs of AP mode and STATION mode; both outputs have what appears to be the same outputs with the exception of the server connecting or not connecting.

19:39:43.735 -> [ 307][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 0 - WIFI_READY
19:39:43.735 -> [ 395][I][WiFiGeneric.cpp:1354] setDualAntennaConfig(): TX Antenna will be automatically selected
19:39:43.735 -> [ 395][V][WiFiGeneric.cpp:390] _arduino_event_cb(): AP Started
19:39:43.735 -> Connect to Wi-Fi access point: JailCell
19:39:43.735 -> [ 399][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 10 - AP_START
19:39:43.735 -> and open http://192.168.4.1 in your browser

19:45:56.643 -> [ 1][V][WiFiServer.h:42] WiFiServer(): WiFiServer::WiFiServer(port=⸮
19:45:57.090 -> [ 313][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 0 - WIFI_READY
19:45:57.090 -> [ 400][I][WiFiGeneric.cpp:1354] setDualAntennaConfig(): TX Antenna will be automatically selected
19:45:57.090 -> [ 400][V][WiFiGeneric.cpp:338] _arduino_event_cb(): STA Started
19:45:57.090 -> Connecting to SMG930V5FE3
19:45:57.090 -> [ 404][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 2 - STA_START

I have included all comments including esptool, Configuring flash size & [SPIFFS] data. I fail to see what the differences are between AP & STATION modes for only STATION mode to work flawlessly and AP mode to never connect even though as shown AP mode is initialized, proven by the WiFi scanner.

I do truly appreciate your help and all comments are welcomed.

Sincerely,
Louis Hall

file name: esp32-fastled-webserver20230124
Contents:
esp32-fastled-webserver20230124.ino
log.h
msds.h
TwinkleFOX.h
patterns.h
palettes.h
fields.h
field.h
twinkles.h
gradientPalettes.h
web.h

sub folder named data:
data contents: index.htm & favicon.ico

sub folder named js: folder contents: app.js
sub folder named images: folder contents: atom196.png
sub folder named css: folder contents: styles.css

***Operation Modes

const bool apMode = true;
softAP mode:

Sketch uses 818673 bytes (62%) of program storage space. Maximum is 1310720 bytes.
Global variables use 43912 bytes (13%) of dynamic memory, leaving 283768 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.2.1
Serial port /dev/ttyUSB0
Connecting................
Chip is ESP32-D0WD-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: c4:de:e2:12:24:78
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Erasing flash (this may take a while)...
Chip erase completed successfully in 10.7s
Compressed 18912 bytes to 13025...
Writing at 0x00001000... (100 %)
Wrote 18912 bytes (13025 compressed) at 0x00001000 in 0.3 seconds (effective 443.8 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 128...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (128 compressed) at 0x00008000 in 0.0 seconds (effective 613.5 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 910.8 kbit/s)...
Hash of data verified.
Compressed 824448 bytes to 531864...
Writing at 0x00010000... (3 %)
Writing at 0x0001bc33... (6 %)
Writing at 0x0002615d... (9 %)
Writing at 0x000317b9... (12 %)
Writing at 0x000373b1... (15 %)
Writing at 0x0003d025... (18 %)
Writing at 0x00042d98... (21 %)
Writing at 0x000485a0... (24 %)
Writing at 0x0004dc01... (27 %)
Writing at 0x00052e3c... (30 %)
Writing at 0x00058100... (33 %)
Writing at 0x0005d3af... (36 %)
Writing at 0x0006275b... (39 %)
Writing at 0x000679c4... (42 %)
Writing at 0x0006cc76... (45 %)
Writing at 0x00071d73... (48 %)
Writing at 0x00076fe3... (51 %)
Writing at 0x0007cc91... (54 %)
Writing at 0x00082552... (57 %)
Writing at 0x00087687... (60 %)
Writing at 0x0008ca20... (63 %)
Writing at 0x00091e20... (66 %)
Writing at 0x0009732c... (69 %)
Writing at 0x0009cb3c... (72 %)
Writing at 0x000a2901... (75 %)
Writing at 0x000a8314... (78 %)
Writing at 0x000ae66c... (81 %)
Writing at 0x000b8b7c... (84 %)
Writing at 0x000be27c... (87 %)
Writing at 0x000c4705... (90 %)
Writing at 0x000cb9e5... (93 %)
Writing at 0x000d11b5... (96 %)
Writing at 0x000d6bbe... (100 %)
Wrote 824448 bytes (531864 compressed) at 0x00010000 in 7.9 seconds (effective 837.3 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
[SPIFFS] data : /home/louis/Arduino/SketchBook/Development/esp32-fastled-webserver20230124/data
[SPIFFS] start : 2686976
[SPIFFS] size : 1472
[SPIFFS] page : 256
[SPIFFS] block : 4096
/js/app.js
/favicon.ico
/images/atom196.png
/css/styles.css
/index.htm
[SPIFFS] upload : /tmp/arduino_build_828180/esp32-fastled-webserver20230124.spiffs.bin
[SPIFFS] address: 2686976
[SPIFFS] port : /dev/ttyUSB0
[SPIFFS] speed : 921600
[SPIFFS] mode : dio
[SPIFFS] freq : 80m

esptool.py v3.3.2-dev
Serial port /dev/ttyUSB0
Connecting.........
Chip is ESP32-D0WD-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: c4:de:e2:12:24:78
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash will be erased from 0x00290000 to 0x003fffff...
Compressed 1507328 bytes to 19233...
Writing at 0x00290000... (50 %)
Writing at 0x002cfc13... (100 %)
Wrote 1507328 bytes (19233 compressed) at 0x00290000 in 7.8 seconds (effective 1550.7 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

Monitor Output:;
19:39:42.977 -> rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
19:39:42.977 -> configsip: 0, SPIWP:0xee
19:39:42.977 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
19:39:42.977 -> mode:DIO, clock div:1
19:39:42.977 -> load:0x3fff0030,len:1344
19:39:42.977 -> load:0x40078000,len:13864
19:39:42.977 -> load:0x40080400,len:3608
19:39:42.977 -> entry 0x400805f0
19:39:43.244 -> [ 1][V][WiFiServer.h:42] WiFiServer(): WiFiServer::WiFiServer(port=⸮ b rrrJj
19:39:43.244 -> [ 1][V][WebServer.cpp:87] WebServer(): WebServer::Webserver(port=80)
19:39:43.244 -> [ 7][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz
19:39:43.413 -> Listing directory: /
19:39:43.477 -> FILE: app.js SIZE: 13101
19:39:43.477 -> FILE: favicon.ico SIZE: 4286
19:39:43.513 -> FILE: atom196.png SIZE: 5469
19:39:43.513 -> FILE: styles.css SIZE: 31
19:39:43.513 -> FILE: index.htm SIZE: 10733
19:39:43.735 -> [ 307][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 0 - WIFI_READY
19:39:43.735 -> [ 395][I][WiFiGeneric.cpp:1354] setDualAntennaConfig(): TX Antenna will be automatically selected
19:39:43.735 -> [ 395][V][WiFiGeneric.cpp:390] _arduino_event_cb(): AP Started
19:39:43.735 -> Connect to Wi-Fi access point: JailCell
19:39:43.735 -> [ 399][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 10 - AP_START
19:39:43.735 -> and open http://192.168.4.1 in your browser
19:39:43.735 -> [ 420][V][RequestHandlersImpl.h:73] StaticRequestHandler(): StaticRequestHandler: path=/index.htm uri=/ isFile=1, cache_header=max-age=86400
19:39:43.735 ->
19:39:43.735 -> [ 426][V][RequestHandlersImpl.h:73] StaticRequestHandler(): StaticRequestHandler: path=/index.htm uri=/index.htm isFile=1, cache_header=max-age=86400
19:39:43.735 ->
19:39:43.735 -> [ 486][V][RequestHandlersImpl.h:73] StaticRequestHandler(): StaticRequestHandler: path=/favicon.ico uri=/favicon.ico isFile=1, cache_header=max-age=86400
19:39:43.735 ->
19:39:43.735 -> [ 490][V][RequestHandlersImpl.h:73] StaticRequestHandler(): StaticRequestHandler: path=/css/styles.css uri=/css/styles.css isFile=1, cache_header=max-age=86400
19:39:43.967 ->
19:39:43.967 -> [ 549][V][RequestHandlersImpl.h:73] StaticRequestHandler(): StaticRequestHandler: path=/js/app.js uri=/js/app.js isFile=1, cache_header=max-age=86400
19:39:43.967 ->
19:39:43.967 -> [ 553][V][RequestHandlersImpl.h:73] StaticRequestHandler(): StaticRequestHandler: path=/images/atom196.png uri=/images/atom196.png isFile=1, cache_header=max-age=86400
19:39:43.967 ->
19:39:43.967 -> HTTP server started
19:39:43.967 -> ..................................................

const bool apMode = false;
STATION mode:

Sketch uses 818237 bytes (62%) of program storage space. Maximum is 1310720 bytes.
Global variables use 43928 bytes (13%) of dynamic memory, leaving 283752 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.2.1
Serial port /dev/ttyUSB0
Connecting..............
Chip is ESP32-D0WD-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: c4:de:e2:12:24:78
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Erasing flash (this may take a while)...
Chip erase completed successfully in 10.8s
Compressed 18912 bytes to 13025...
Writing at 0x00001000... (100 %)
Wrote 18912 bytes (13025 compressed) at 0x00001000 in 0.3 seconds (effective 437.3 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 128...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (128 compressed) at 0x00008000 in 0.0 seconds (effective 512.1 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 836.4 kbit/s)...
Hash of data verified.
Compressed 824016 bytes to 531746...
Writing at 0x00010000... (3 %)
Writing at 0x0001bb69... (6 %)
Writing at 0x00026063... (9 %)
Writing at 0x000317cd... (12 %)
Writing at 0x000373d4... (15 %)
Writing at 0x0003d13f... (18 %)
Writing at 0x00042e8c... (21 %)
Writing at 0x000485ef... (24 %)
Writing at 0x0004dc46... (27 %)
Writing at 0x00052e8c... (30 %)
Writing at 0x000580f6... (33 %)
Writing at 0x0005d3ee... (36 %)
Writing at 0x0006276d... (39 %)
Writing at 0x000679e9... (42 %)
Writing at 0x0006cc79... (45 %)
Writing at 0x00071d3b... (48 %)
Writing at 0x00077020... (51 %)
Writing at 0x0007cca4... (54 %)
Writing at 0x00082509... (57 %)
Writing at 0x000876a8... (60 %)
Writing at 0x0008ca42... (63 %)
Writing at 0x00091e73... (66 %)
Writing at 0x00097347... (69 %)
Writing at 0x0009cb68... (72 %)
Writing at 0x000a295a... (75 %)
Writing at 0x000a8344... (78 %)
Writing at 0x000ae697... (81 %)
Writing at 0x000b8bb4... (84 %)
Writing at 0x000be2a1... (87 %)
Writing at 0x000c460c... (90 %)
Writing at 0x000cb8e6... (93 %)
Writing at 0x000d10ae... (96 %)
Writing at 0x000d6a93... (100 %)
Wrote 824016 bytes (531746 compressed) at 0x00010000 in 7.8 seconds (effective 848.4 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
[SPIFFS] data : /home/louis/Arduino/SketchBook/Development/esp32-fastled-webserver20230124/data
[SPIFFS] start : 2686976
[SPIFFS] size : 1472
[SPIFFS] page : 256
[SPIFFS] block : 4096
/js/app.js
/favicon.ico
/images/atom196.png
/css/styles.css
/index.htm
[SPIFFS] upload : /tmp/arduino_build_828180/esp32-fastled-webserver20230124.spiffs.bin
[SPIFFS] address: 2686976
[SPIFFS] port : /dev/ttyUSB0
[SPIFFS] speed : 921600
[SPIFFS] mode : dio
[SPIFFS] freq : 80m

esptool.py v3.3.2-dev
Serial port /dev/ttyUSB0
Connecting..............
Chip is ESP32-D0WD-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: c4:de:e2:12:24:78
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash will be erased from 0x00290000 to 0x003fffff...
Compressed 1507328 bytes to 19232...
Writing at 0x00290000... (50 %)
Writing at 0x002cfc13... (100 %)
Wrote 1507328 bytes (19232 compressed) at 0x00290000 in 7.8 seconds (effective 1546.9 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

Monitor Output:;
19:45:56.377 -> rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
19:45:56.377 -> configsip: 0, SPIWP:0xee
19:45:56.377 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
19:45:56.377 -> mode:DIO, clock div:1
19:45:56.377 -> load:0x3fff0030,len:1344
19:45:56.377 -> load:0x40078000,len:13864
19:45:56.418 -> load:0x40080400,len:3608
19:45:56.418 -> entry 0x400805f0
19:45:56.643 -> [ 1][V][WiFiServer.h:42] WiFiServer(): WiFiServer::WiFiServer(port=⸮
19:45:57.090 -> [ 313][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 0 - WIFI_READY
19:45:57.090 -> [ 400][I][WiFiGeneric.cpp:1354] setDualAntennaConfig(): TX Antenna will be automatically selected
19:45:57.090 -> [ 400][V][WiFiGeneric.cpp:338] _arduino_event_cb(): STA Started
19:45:57.090 -> Connecting to SMG930V5FE3
19:45:57.090 -> [ 404][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 2 - STA_START
19:45:57.090 -> [ 416][V][WiFiGeneric.cpp:97] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0
19:45:57.090 -> [ 432][V][RequestHandlersImpl.h:73] StaticRequestHandler(): StaticRequestHandler: path=/index.htm uri=/ isFile=1, cache_header=max-age=86400
19:45:57.090 ->
19:45:57.090 -> [ 437][V][RequestHandlersImpl.h:73] StaticRequestHandler(): StaticRequestHandler: path=/index.htm uri=/index.htm isFile=1, cache_header=max-age=86400
19:45:57.218 ->
19:45:57.218 -> [ 497][V][RequestHandlersImpl.h:73] StaticRequestHandler(): StaticRequestHandler: path=/favicon.ico uri=/favicon.ico isFile=1, cache_header=max-age=86400
19:45:57.218 ->
19:45:57.218 -> [ 501][V][RequestHandlersImpl.h:73] StaticRequestHandler(): StaticRequestHandler: path=/css/styles.css uri=/css/styles.css isFile=1, cache_header=max-age=86400
19:45:57.218 ->
19:45:57.218 -> [ 534][V][WiFiGeneric.cpp:353] _arduino_event_cb(): STA Connected: SSID: SMG930V5FE3, BSSID: 1e:83:64:fa:c3:2b, Channel: 11, Auth: WPA2_PSK
19:45:57.218 -> [ 536][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 4 - STA_CONNECTED
19:45:57.328 -> [ 572][V][RequestHandlersImpl.h:73] StaticRequestHandler(): StaticRequestHandler: path=/js/app.js uri=/js/app.js isFile=1, cache_header=max-age=86400
19:45:57.328 ->
19:45:57.328 -> [ 576][V][RequestHandlersImpl.h:73] StaticRequestHandler(): StaticRequestHandler: path=/images/atom196.png uri=/images/atom196.png isFile=1, cache_header=max-age=86400
19:45:57.328 ->
19:45:57.328 -> [ 591][V][WiFiGeneric.cpp:367] _arduino_event_cb(): STA Got New IP:192.168.212.50
19:45:57.447 -> [ 597][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 7 - STA_GOT_IP
19:45:57.447 -> [ 604][D][WiFiGeneric.cpp:991] _eventCallback(): STA IP: 192.168.212.50, MASK: 255.255.255.0, GW: 192.168.212.234
19:45:57.447 -> HTTP server started
19:45:57.447 ->
19:45:57.447 -> WiFi connected
19:45:57.447 -> IP address: 192.168.212.50
19:45:57.447 -> [ 627][V][RequestHandlersImpl.h:73] StaticRequestHandler(): StaticRequestHandler: path=/index.htm uri=/ isFile=1, cache_header=max-age=86400
19:45:57.447 ->
19:45:57.447 -> [ 633][V][RequestHandlersImpl.h:73] StaticRequestHandler(): StaticRequestHandler: path=/index.htm uri=/index.htm isFile=1, cache_header=max-age=86400
19:45:57.447 ->
19:45:57.447 -> [ 693][V][RequestHandlersImpl.h:73] StaticRequestHandler(): StaticRequestHandler: path=/favicon.ico uri=/favicon.ico isFile=1, cache_header=max-age=86400
19:45:57.447 ->
19:45:57.447 -> [ 697][V][RequestHandlersImpl.h:73] StaticRequestHandler(): StaticRequestHandler: path=/css/styles.css uri=/css/styles.css isFile=1, cache_header=max-age=86400
19:45:57.447 ->
19:45:57.447 -> [ 757][V][RequestHandlersImpl.h:73] StaticRequestHandler(): StaticRequestHandler: path=/js/app.js uri=/js/app.js isFile=1, cache_header=max-age=86400
19:45:57.447 ->
19:45:57.447 -> [ 761][V][RequestHandlersImpl.h:73] StaticRequestHandler(): StaticRequestHandler: path=/images/atom196.png uri=/images/atom196.png isFile=1, cache_header=max-age=86400
19:45:57.447 ->
19:45:57.447 -> HTTP server started

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.