is there a way to manage the data to be sent to the Cloud in case the system is disconnected from the network? For example, if we want to publish data on AWS via MQTT protocol, it is necessary to study how to manage the publication queue to ensure that in the event of a connection loss, upon reconnection all unsent data is then correctly published on the CLOUD.
You need to have some sort of local cache that only holds unsent data.
How can this be done? Are there any examples?