All Forums > Programming Questions

Is it possible to save HashMap to EEPROM?

(1/1)

fsamir:
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

brevig:
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: ---this.codeIs(pretty);
--- End code ---

Navigation

[0] Message Index

Go to full version