Until now the hub uploaded only from its flash. Flash holds about 2,400 readings, and when it fills the oldest are dropped, uploaded or not. At 16 nodes on the five-minute default, that is about 12 hours without a mobile connection, even though the SD card holds every reading. Last week's work made the card trustworthy. This week the uploads moved onto it.
The hub now sends readings from the card, oldest first, and the card keeps its own upload position, so a card put back in its hub picks up where it stopped. A card the hub has not seen before counts as already uploaded, so a card from another hub never sends that hub's old backlog, and the pages say that a different hub's card is in. Readings that only reached flash while the card was out go up from flash. When the card fills, the hub removes its oldest month file, but only after that wake's upload, and it counts what it removed on its pages, in its status and on the dashboard's FieldHub card. Flash makes room by dropping whole pieces, which also fixes a purge that stopped working above about 72 % use.
On the bench, 1,025 readings were waiting: some in flash from before the update, some from two windows run without the card, and the newest on the card. They went up in that order, and with the 23 from the next window the hub sent 1,048 readings in 24 requests, each stored exactly once. One request was cut by a brownout on the bench's breadboard supply, and the next wake carried on from the exact byte.
This is still bench evidence. Power cuts in the middle of writes, and a 48-hour outage at the rate of a 16-node hub, are the next tests.