Feature request: sync when notecard storage is above certain level?

Hi,

I use periodic syncing. But it would be great if storage capacity could also be used to initiate syncing, e.g. above 75%: start trying to sync with some retry interval.

Regards, Gaute

1 Like

Hi @gauteh,

Notecard will automatically start a sync if it reaches 80% capacity, but be aware that it only checks on the standard inbound/outbound sync intervals.

Thanks,
Alex

Which intervals are those?

That will be the intervals you have specified with periodic mode. The Notecard will respect those intervals and sync on either: if there is a pending outbound event (Notefile to send, etc.) OR if the notecard is 80%+ full.

Ok. But there will always be pending notes if it is 80% full…? So if I set a large periodic sync, it may become full in the meantime.

Hi @gauteh,

We clarified this internally and you’re right, if a device is 80% full it should also be periodically syncing anyway. I’d be happy to create a feature request for this. What would be the most useful way to phrase this capability? Is there a reason you’d want to specify a % of flash storage that triggers a sync - vs a boolean that just says to force a sync at 80% for instance (regardless of your periodic timings)?

Rob

I would be happy with fixed at 80%, and a bool. Then it would sync periodic or when full storage, whichever comes first?

2 Likes