I can't send files because I'm still a new member
You have to reach trust-level one for doing this
For posting pictures you have to do a few things that are easy to do
You have to reach trustlevel 1 through these activities:
Get to trust level 1 by…
- clicking on 5 different threads
- reading 30 postings (they must have been visible on the screen
- beeing a minimum time of 10 minutes in the forum
sorry, I didn't see your previous message, do you mean the version of the ESP32 board or the ESP32 in the Arduino IDE?
.
the word "installed" points towards the core-version. Which ESP32-board-support-version did you install?
This is something different than the chosen microcontroller-board.
It is the software-core needed for compiling
ok, i'll do that
123.txt (1,9 KB)
Would you please
finally
adjust your compiler-log-options like described in this tutorial ?!
which I am posting the link to now for the third time?!
The informations needed to help you are not in this short version of the compiler-log
This information is only printed in the compiler-log if you change to verbose output like described in the tutorial.
sorry, I sent the wrong file
12345.zip (120,5 KB)
This is the error
fatal error: esp32-hal-periman.h: No such file or directoryAlternatives for esp32-hal-periman.h:
Using board 'esp32doit-devkit-v1' from platform in folder: C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11
Using core 'esp32' from platform in folder: C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11
The newest one is 2.0.14
as already mentioned here:
How many times do you need to read this:
You should really post a LINK where you found this code that you have posted.
or
at least say where did you get this code from that uses a header-file named
esp32-hal-periman.h
??
Are you even sure that this compiler-log is from the code you have posted?
it is from this file
C:\Users\User\Documents\kode program\gpx\ gpx.ino
The code that you have posted in post #4
which is this one
#include <WiFi.h>
#include <FirebaseESP32.h>
#include <TinyGPS++.h>
#include <SoftwareSerial.h>
#define FIREBASE_HOST "aaaa"
#define FIREBASE_AUTH "bbbb"
#define WIFI_SSID "xxx"
#define WIFI_PASSWORD "yyy"
FirebaseAuth auth;
FirebaseConfig config;
#define GPS_TX 12 // GPS TX pin to ESP32 RX2 pin
#define GPS_RX 14 // GPS RX pin to ESP32 TX2 pin
FirebaseData firebaseData;
SoftwareSerial gpsSerial(GPS_RX, GPS_TX); // Create a software serial port
TinyGPSPlus gps; // Create a TinyGPS++ object
void setup() {
Serial.begin(115200);
gpsSerial.begin(9600); // Start the software serial port for GPS
// Connect to Wi-Fi
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("\nConnected to WiFi");
// Initialize Firebase
Firebase.begin(&config, &auth);
// Wait for the GPS module to start
delay(1000);
}
void loop() {
// Read data from GPS
while (gpsSerial.available() > 0) {
if (gps.encode(gpsSerial.read())) {
if (gps.location.isValid()) {
// Get latitude and longitude
double latitude = gps.location.lat();
double longitude = gps.location.lng();
// Push latitude and longitude data to Firebase
if (Firebase.setDouble(firebaseData, "/location/latitude", latitude) &&
Firebase.setDouble(firebaseData, "/location/longitude", longitude)) {
Serial.println("Location data sent to Firebase");
} else {
Serial.println("Failed to send location data to Firebase");
}
}
}
}
// Handle errors or no data received from GPS
if (millis() > 5000 && gps.charsProcessed() < 10) {
Serial.println("No GPS data received: check wiring or GPS module");
while(true);
}
// Wait a while before sending more data to Firebase
delay(5000);
}
does NOT even contain this filemane esp32-hal-periman.h
At this point I am asking myself if you did compile / copy / mark careful enough to show valid and relevant information or if you are troll
The newest one is 2.0.14
Version 2.0.15 was released yesterday: https://github.com/espressif/arduino-esp32/releases/tag/2.0.15
esp32-hal-periman.h
But that file does not exist in V2.0.15 either.
It does exist in the unreleased v3.0.0 RC1. You can find it Here.
So, as already requested, it would be good to have a link to where @setyanug found this code.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.