STOR-ing word values in EEPROM

Hi,

I am using the stor object on the EM1202 to store equipment data (model number, serial number, IP, port, firmware revision etc) in EEPROM. This is fine as I can store and recall all the data as strings.

However, I now want to store a whole set of values from a 10-bit A-to-D converter into EEPROM. I have the values in 16-bit word variables and want to store them to EEPROM as 2-bytes each, but stor.setdata and stor.getdata accept strings only. If I convert to strings using the hex function, I end up using minimum 4-bytes, or double the space!

Can anyone suggest how I can easily write/read these values in only 2-bytes each?

Thanks.
 
sad I’m frustrated
Inappropriate?
1 person has this question

User_default_medium