Open MathiasKoch opened 4 years ago
Relevant: https://github.com/rust-embedded/embedded-hal/pull/241
Should be based on https://github.com/rust-embedded-community/embedded-storage/
Have a look at how Paho MQTT does it in C: https://github.com/eclipse/paho.mqtt.c/blob/master/src/MQTTClientPersistence.h
Motivation
We need a way to allow users to persist outgoing MQTT packets to a non-volatile storage space, in case of network loss for longer periods. Ideally this should be a full opt-in feature.
Basic idea would be to make it two steps.
Persistent buffering to external flash
Work in progress i am thinking something along the lines of a key-value store, highly inspired by the persistence layer in Paho: