Wiring Forum

All Forums => Programming Questions => Topic started by: fsamir on April 17, 2013, 06:19:19 PM

Title: Is it possible to save HashMap to EEPROM?
Post by: fsamir on April 17, 2013, 06:19:19 PM
Hi everyone,

I have a  HashMap (author Alexander Brevig) object in a struct, that I am saving to EEPROM (arduino). However, the values get all messed up when I load the struct from EEPROM.

Would you have any clues on how to save that to a persistent memory such as EEPROM?

Cheers,
Franklin Dattein
Title: Re: Is it possible to save HashMap to EEPROM?
Post by: brevig on April 25, 2013, 04:01:29 AM
Hi there, could you post your code?

You're going to need to write your own saveHashMap and loadHashMap functions, but I can help you with that.
Post the code here and use the [ # ] symbol so it prints the code formatted:

Code: [Select]
this.codeIs(pretty);