Writing data to the .txt files using SPIFFS in Arduino IDE -
i keep trying write content .txt file placed in current sketch folder file not being overwritten... please me , here code
#include "fs.h" void setup() { serial.begin(115200); serial.println(); spiffs.begin(); file configfile = spiffs.open("config.txt", "a+"); if (configfile) { configfile.println("hai"); serial.println(configfile.readstring()); } configfile.close(); } void loop() { }
with code snip, doing spiffs write on-board filesystem.
while running on specific board, cannot able write data source pc. achieve this, run webserver device serve file requested point.
Comments
Post a Comment