Hi,
We are working on the Gurux example 2 and we realized that the function save(void* data, uint16_t size) (check the picture) was taking 2 arguments: the first one indicates the data that has been changed in the meter data structure and the second the size of this data. However the weird fact is that the 2 arguments are not used by the function save at all. These arguments should serve to overwrite the specific changed data, instead of that, we are re-writing each time all the data in the meterData structure (876 byte!). On micro-controller, this function is taking a lot of time and using a lot of erase/write cycle of the memory.
Can you implement the save function to re-write and changed only the passed arguments on the memory not all the structure?
Best Regards,
Lara Wakim
The save() function
Hi,
This is implemented for Arduino example as you describe.
https://github.com/Gurux/GuruxDLMS.c/Arduino_IDE\server
Open server.ino file and find save-method.
BR,
Mikko