ESP32 Storing some variables as a struct into the NVS and updating it, so it can survive power cycles.

This is an update to the original code where I have updated it, so that it is now a struct that is saved into the NVS, so that multiple variables can be stored in it. Any data type that can be stored in a C structure can be stored, which is basically any data type that consists of a set number of bytes that are stored in memory. I did at first have a look into saving the variables separately, but this is a bit impractical because there  is a set procedure that has to be followed, for when data is taken from and put into the NVS, so it is easier to just use a single struct that is saved as a blob data type, which is just a data type that stores a range of bytes and this is why it is the ideal to use a storage for a C structure. I have put the code up on codeberg and the link to it is below:
https://codeberg.org/macpczone/ESP32_NVS_Struct