MKRWAN 1310: how to write/read float-variables to the MKR1310 memorychip?

I have a MKRWAN 1310.

I want to know how to write/read float-variables to the MKR1310 memorychip?

I have found this library: GitHub - PaulStoffregen/SerialFlash: Library for using SPI Flash memory with a filesystem-like interface but it's for files.

I have a structure:

struct PH {
const uint8_t magic = magic_char;
float mid_cal = 1500;
float low_cal = 2030;
float high_cal = 975;
};

struct PH pH;

I want to store this structure-variable pH in the MKR1310 memory, and I want to read it back also.

Any help would be nice :wink: