• 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 – esp32-hal-time.c.o

Q&A Forum › Category: ESP32 › Build Web Servers with the ESP32 and ESP8266 – 1.2 Hello World Web Server – esp32-hal-time.c.o
0 Vote Up Vote Down
Matthias Evers asked 4 years ago

Hello, there are two messages at compiling, see below :
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/esp32-hal-time.c.o
/home/matthias/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-spi.c: In function ‘spiTransferBytesNL’:
/home/matthias/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-spi.c:922:39: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
uint8_t * last_out8 = &result[c_longs-1];
                                 ^
/home/matthias/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-spi.c:923:40: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
uint8_t * last_data8 = &last_data;
I went through the tutorial and example 1.1 and the section before were Ok. This is the first time  I got stuck.
As it looks like a Software bug I assume that my Hardware is Ok. I use an NodeESP out of a Maker Kit from company Franzis.
Please ask additional questions, give me some link where I can find a solution.
What can I do to make this project running?
thanks Mat

Question Tags: Build Web Servers with the ESP32 and ESP8266 – 1.2 Hello World Web Server
8 Answers
1 Vote Up Vote Down
Best Answer
Matthias Evers answered 4 years ago

to 2) I tried exp. 1.3  from your tutorial

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi Mat.
Are you using Arduino IDE or VS Code?
What is your operating system?
Can you share a link to the board model you have?
Regards,
Sara

0 Vote Up Vote Down
Matthias Evers answered 4 years ago

thank you for replay Sara. Here are my answers :
1.) ubuntu with vs + pio -> that’s where I got the error messages from, as posted above.
2.) WIN10, Aduino IDE -> exp. 1.3,  this was what I have tried out today, there was no error message (visible) to me but also there was no result when I opened the website in browser with the IP number from serial monitor.
From serial monitor :
17:53:44.631 -> ets Jun 8 2016 00:22:57
17:53:44.631 ->
17:53:44.631 -> rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
17:53:44.631 -> configsip: 0, SPIWP:0xee
17:53:44.631 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
17:53:44.631 -> mode:DIO, clock div:2
17:53:44.631 -> load:0x3fff0018,len:4
17:53:44.631 -> load:0x3fff001c,len:1216
17:53:44.631 -> ho 0 tail 12 room 4
17:53:44.631 -> load:0x40078000,len:10944
17:53:44.631 -> load:0x40080400,len:6360
17:53:44.631 -> entry 0x400806b4
17:53:45.051 -> Connecting to WiFi …..192.168.178.64
17:53:48.139 -> SPIFFS mounted successfully
————————-
3.) HW NodeESP Support Archive – Internet of Things mit dem NanoESP (fkainka.de)
The webserver in this maker kit and with the latest update of the firmware works as described in this package.
As it is a ESP32 I was on the opinion that it should also work with your tutorial.

0 Vote Up Vote Down
Matthias Evers answered 4 years ago

to 2.) …and finally I found the mistake … the SPIFFS were not installed correctly, I have repeated installation of the SPIFFS and now I see the result in browser.
to 1.) In Linux environment I will look at it at a later point time.
best regards Matthias
 

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi Matias.
 
Usually, when everything uploads fine, SPIFFS is mounted successfully, but the web page doesn’t show anything, that means that the files were not uploaded to SPIFFS.
 
As for the other error, I’m not sure what is causing it . I use Windows computer, so I’m not familiar with Linux issues. 
It may be useful if you post your issue in the PlatformIO forum. Maybe they can help you better:

  • https://community.platformio.org/

 
Regards,
Sara

0 Vote Up Vote Down
Matthias Evers answered 4 years ago

Hi Sara, thank you very much for this tutorial. THank you for all your time you are spending in your projects.
I went on and also in Linux/VS/PIO I was able to upload the filesystem image correctly and the example works as described.
On page 286 of your tutorial, I tried the link to download the complete project without success.
I used https://github.com/RuiSantosdotme/build-web-servers-dl/blob/main/2_3_Outputs%20_Websockets.zip instead and downloaded the zip file.
best regards Mat

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi Mat.
I’m sorry about that issue.
This is the correct link to download the project files:

  • https://github.com/RuiSantosdotme/build-web-servers-dl/raw/main/2_3_Outputs%20_Websockets.zip

Regards,
Sara

0 Vote Up Vote Down
laurentk klotz answered 4 years ago

I m currently stuck in the same chapter.
I already made a post on the forume there is the link.

ESP32 Buid webserver


Thx in advance

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.