• 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

Web Server with ESP32 and ESP8266 eBook – 2_1_Output

Q&A Forum › Web Server with ESP32 and ESP8266 eBook – 2_1_Output
0 Vote Up Vote Down
Ferdinando Dossena asked 4 months ago

Good evening,
I uploaded the project “2_1_output” on esp 32 Azdelivery module. I can see the page correctly, but if I press a button, on or off, Chrome tells me that the server is unable to process the request. In the other hand Firefox displays a blank page.
Where is the problem?

Thank you very much.

7 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 months ago

Hi Ferdinando.
That’s very weird.
Do you have any applications on your browser that block adds or similar?
Did you change anything in the code?
Can you show me a printscreen of your error?
At the same time, can you check if something is happening on the Serial Monitor?
Regards,
Sara

0 Vote Up Vote Down
Ferdinando Dossena answered 3 months ago

Hi Sara,
The only change I made was in platfomio.ini because I use an Azdelivery ESP32 device.
In the code I changed only SSID & Password
My enviroment:

  • Ubuntu 18.04
  • Vs Code Version: 1.51.1
    Date: 2020-11-10T23:31:29.624Z
    Electron: 9.3.3
    Chrome: 83.0.4103.122
    Node.js: 12.14.1
    V8: 8.3.110.13-electron.0
    OS: Linux x64 4.15.0-123-generic
  • Vs Code Terminal:
    rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:2
    load:0x3fff0018,len:4
    load:0x3fff001c,len:1044
    load:0x40078000,len:8896
    load:0x40080400,len:5828
    entry 0x400806ac
    Connecting to WiFi …192.168.1.102
    SPIFFS mounted successfully
0 Vote Up Vote Down
Ferdinando Dossena answered 3 months ago

Last news!
for to check the program I inserted two lines in the “String processor (const String & var)” function to print the status of the LED.
After loading the new code (ONLY the code not data) … now everything works.
I have restored the function as originally, reloaded the code, it continues to work correctly.
I don’t understand what happened 🙁

Thanks.

REmark:
The Azdelivery module don’t mount the Led onboard.

Regard
Ferdinando

0 Vote Up Vote Down
Sara Santos Staff answered 3 months ago

Hi.
I’m glad you found the issue.
Can you show me the lines you’ve inserted that caused the problem?
Regards,
Sara

0 Vote Up Vote Down
Ferdinando Dossena answered 3 months ago

Hi,
I did other tests, I found that if I upload the data files into the device before the code, everything works. otherwise if I upload the code before the data files, the problem arises.

Well, I need to upload in to the module, index.html, style.css, etc file before the code main.cpp.

Regards

Ferdinando

0 Vote Up Vote Down
Sara Santos Staff answered 3 months ago

Hi.
I’m glad you found the issue.
I’ll mark this question as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

0 Vote Up Vote Down
Ferdinando Dossena answered 3 months ago

Hi Sara,
Ok, resolved.

Best regards
Ferdinando

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] Download Build Web Servers with ESP32 and ESP8266 (2nd Edition) February 8, 2021
  • [eBook Released] Build Web Servers with ESP32 and ESP8266 (version 1.0) October 27, 2020

You must be logged in to view this content.

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

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