Store latest 100 values always on the table widget ALWAYS

anybody Know how can i keep latest 100 values(i.e a temp value) on table i need to store the rowindex value in a EEPROM or Other Memory for when my board restarted.
so my problem is after some days my rowindex is a big value i.e 1500.
i mean i want to store latest 100 values always in the table widget.

Blynk does that by default. Table widget stored last 100 values. You need just to send them to the server. You can also increase this limit on the local server.

1 Like

ok i know but i mean when i increase rownumber with rowindex++; it will be a large integer i.e 153260 so after reboot The MCU(NodeMCU or any) rowindex will be rowindex=0; as i defined in Sketch and the data will be overwrite(Update) from First row of table(0).it mean i want The new Data Alway.
imagin that we have a table widget and i configured the ESP8266 for that and i use default Blynk Table widget Sketch so the rowindex is incressing and now rowindex = 175; so i reboot the ESP and now rowindex is rowindex = 0; so the new date wil be overwrite on last value of row “0” and continues but i mean new rowindex after last one.
sorry for my bad.

Ah. In that case, you may store index in EEPROM or in other virtual pin and get in via virtualSync.

i think that EEPROM is not good choice cause EEPROM Write limitation(35000) so Other virtualpin is good choose so is there on virtual pin any value limitation or on table rowindex value limatation on table rowindex for server side or blynk(i mean i.e. the table with rowindex 550000 is valid?)?

You can get a separate Micro-SD breakout board to store data onto?

It would be kinda nice to have a Blynk “eeprom” - where blynk sends back the value it has stored upon reconnection. It might be tricky to use though since it’s hard to tell the difference between a break in the wifi connection and the arduino module rebooting.

1 Like

@Gaff Blynk’s “EEPROM” feature is called sync.

1 Like

@Costas is it there same limit(write) for SPIFFS on ESP8266 same as EEPROM(35000 writes)?

The sketch, SPIFFS and “EEPROM” area are all on a single flash chip but the EEPROM area is very small compared with SPIFFS. SPIFFS has wear balancing so there are calcs to suggest it will accept over 30 million writes.


I can’t vouch for the accuracy of the data though.

1 Like