• 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 & ESP8266

Q&A Forum › Category: ESP8266 › WEB Server with ESP32 & ESP8266
0 Vote Up Vote Down
Nestor Medina asked 3 years ago

I am working with PIO, for this example
3.2 – Web Server: Display Sensor Readings (Table)
I DO NOT use the BME Sensor, I use my own sensor and its library, the problem arises when I create the platformio.ini as indicated on page 385……. I DO NOT use the BME
[env:esp12e]
platform = expressif8266
board = esp12e
framework = arduino
monitor_speed = 115200
lib_deps = ESP Async WebServer
arduino-libraries/Arduino_JSON@0.1.0
board_build.filesystem = littlefs
In the main file:
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESPAsyncTCP.h>
#include <ESPAsyncWebServer.h>
#include “LittleFS.h”
#include <Arduino_JSON.h>
I have three INCLUDE errors:
Can’t open .h files
Does NOT recognize Arduino_JSON.h
#include <ESPAsyncTCP.h>
#include <ESPAsyncWebServer.h>
#include <Arduino_JSON.h>

Question Tags: PIO ESP8266 WEB SERVER
5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
 
Instead of editing the platformIO.ini file, try to include the libraries manually. Delete the libraries you already have from the plaformio.ini file.
 
Then, in VS Code click on the Libraries tab (in PIO Home), search for the libraries you want to include, and then add them to your project.
 
Try to compile the code again and check if the issue is solved.
 
Regards,
Sara

0 Vote Up Vote Down
Nestor Medina answered 3 years ago

Hi Sara, thanks for your support, problem fixed…..I instaled manually the Libraries from PIO HOME Thanks and regards.
Nestor.
I don’t understand why this message appears…….”Helllo”, Are you cheating huh?

I am responding to Sara informing that the problem has been solved…..thanks Sara again

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

Hi.
I guess you can ignore that message. I’m not sure what it means…
I’ll mark this issue 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
peter gruener answered 3 years ago

Hello,
 
first of all thanks for the effort you take in creating so many content.
 
I’m using in my webserver project the AsynWebServer. After a certain time I recognized some instability with my IOS devices. Than I learned this can be a issue with the AsynWebServer and it looks like there is no fix. However may it’s time to change the “horses” and jump to the HttpServer or HttpsServer. This will have some effort, however I like the the template function in the Asynwebserver for exchanging keywords which works with inside the code buffered HTML content. 
do you know is there some function for the HTTP or HTTPS server available, I’m searching for 2 intensiv days with out success ( maybe I have overlooked some code) by the way way I found something by reading from SPIFFS Which wouldnt help me
Looking for your advise
All the best
Peter

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

Hi.

What do you mean by instability? What happens exactly?

 

For HTTPS you can use WiFiClientSecure. Take a look at this video: https://www.youtube.com/watch?v=Wm1xKj4bKsY

Regards,
Sara

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

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 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.