These are chat archives for esp8266/Arduino

26th
Nov 2016
aneek231
@aneek231
Nov 26 2016 11:40

I have a question if I could use both the File System (SPIFFS) and EEPROM together. for example in the order as below

EEPROM.begin(1024);
SPIFFS.begin();
//creating file

// reading file
SPIFFS.open(path, "r");

EEPROM.read(100); //reading at some location in 1024

or if I need to to EEPROM.begin(1024) again before reading ?

aneek231
@aneek231
Nov 26 2016 11:46
@me-no-dev @igrr please help
Martin Ayotte
@martinayotte
Nov 26 2016 13:21
@aneek231 , I don't see any reason why SPIFFS/EEPROM order should cause any issue.
Michael Miller
@Makuna
Nov 26 2016 16:24
Eeprom.begin should be called only once, usually only in the setup(). In general this is the normal Arduino Api model.