Why when use ESP32 Sketch Data Upload in each time the old code is executed?
where the new code and new modifications are not implemented!!
for example this is my code : any change on this code I didn't see the update on serial monitor where the old execution is show in serial monitor.
#include "SPIFFS.h"
using namespace std;
int n=100;
void setup() {
float *data=(float*)malloc(nbEle*sizeof(float));
Serial.begin(115200);
if(!SPIFFS.begin(true)){
Serial.println("An Error has occurred while mounting SPIFFS");
return;
}
File file2 = SPIFFS.open("/out.txt");
if(!file2){
Serial.println("Failed to open file for reading");
return;
}
Serial.println("File Content:");
while(file2.available()){
for (int i = 0; i <= 5; i++) {
data[i] = file.parseFloat();
Serial.println(data[i]);
}
file2.close();
}
void loop() {}