csv to firebase
bool log_to_fb(){ String log_buf=""; if((Firebase.getString(firebaseData, on_path+"/lc"))){ String buf = firebaseData.stringData(); fb_count = buf.toInt(); if ((log_count<= fb_count)){ return(false);} if ((SPIFFS.exists("/log.csv"))){ File f = SPIFFS.open("/log.csv", "r"); if (!f){return(false);} while(f.available()) { log_buf = ""; log_buf = f.readStringUntil('\n'); log_buf +="\0"; splitCommand(log_buf); } f.close(); return(true); } }else{return(true);} } //===================================================================================== bool splitCommand(String text) { String dt="",rh="",rt="",ft="",ct="",bt="",pw="",nw="",lc=""; int index =0; bool FB