Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, a web toolkit designed to help citizens, conservation practitioners, municipal decision-makers, researchers, educators, and students advance knowledge and stewardship of fresh water. New to EnviroDIY? Start here

Reply To: Reading from EEPROM error in code

Home Forums Mayfly Data Logger Reading from EEPROM error in code Reply To: Reading from EEPROM error in code

#15191
neilh20
Participant

    In case its of interest, I’m using the EEPROMClass from EEPROM.h

    \.platformio\packages\framework-arduino-avr\libraries\EEPROM\src

    EEPROM.put(EP_PERSISTENT_STORE_ADDR, epc.app);  where epc.app is a typedef containing all the values to be stored/read from persistent EEPROM.

    and similarly

    EEPROM.get(EP_PERSISTENT_STORE_ADDR, epc.app);