Dear all
I am following the ebook Build_Web_Servers_ESP32_ESP8266_V2 with vs code and platform io.
with a heltec_wifi_kit_32 card.
My problem:
I tried with blink program for validate the environment and was perfect
after I installed the adafruit bme 280 with adafruit unified sensor
I did the upload process and received the messsage:
In file included from .pio\libdeps\heltec_wifi_kit_32\Adafruit BME280 Library\Adafruit_BME280.cpp:31:0:
.pio\libdeps\heltec_wifi_kit_32\Adafruit BME280 Library\Adafruit_BME280.h:26:29: fatal error: Adafruit_Sensor.h: No such file or directory
*************************************************************************
* Looking for Adafruit_Sensor.h dependency? Check our library registry!
* CLI > platformio lib search “header:Adafruit_Sensor.h”
* Web > https://platformio.org/lib/search?query=header:Adafruit_Sensor.h
*************************************************************************
compilation terminated.
Please can you help me?
Thanks in advance
Hi.
In that section of the eBook, it shows how you would proceed if you wanted to include a library.
If you don’t use it in your sketch, you’ll get an error.
You should also include it in your sketch:
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>
I’m sorry that it is not clear.
Let me know if this answers your question.
Regards,
Sara