M Mostez Well-Known Member Licensed User Longtime User May 10, 2017 #1 Hello, I receive a string representing float-type scale calibration factor i.e. 300.12 from serial stream, I want to store this variable in EEPROM and load it each time device starts. any ideas? Thanks
Hello, I receive a string representing float-type scale calibration factor i.e. 300.12 from serial stream, I want to store this variable in EEPROM and load it each time device starts. any ideas? Thanks
Erel B4X founder Staff member Licensed User Longtime User May 11, 2017 #2 Always better to work with numbers instead of strings. Convert the string to double with: B4X: Dim scale As Double = YourString Convert it to bytes with ByteConverter and write it with the EEPROM library. Upvote 0
Always better to work with numbers instead of strings. Convert the string to double with: B4X: Dim scale As Double = YourString Convert it to bytes with ByteConverter and write it with the EEPROM library.