Hi All. I’m trying to minimise my Electron Asset Tracker V2 GPS power consumption. How do I update and store GPS data/variables once a day?
Initially, I thought of running my Tracker GPS mid-night every day and storing the GPS data in the Electron memory, but I’m not 100% sure how to save non-volatile variables in Electron memory.
Any example code would be much appreciated. Cheers.
EEPROM.put() stores data in the EEPROM. EEPROM.get() obtains data from the EEPROM. Make sure that the addresses in the EEPROM don't overlap (i.e. pay attention to the size of each variable). The EEPROM has a size of 2047 bytes. Whatever is stored in the EEPROM remains there even through Deep Sleep or disconnecting power.