Easy sustainable communication with ESP?

Hello,

Till today i used MQTT for my esps to communicate
It is easy and for non critical “always on direct communication” it is a nice way.

Now i work on a project without always connected “direct” communication.
I want to synchronize lets say 8 values every hour.

So mqtt is a bad way to do that …
Retained messages will be overwritten by the next and for every value a own channel is also not the best way …
Also do a communication if online message recived send and recive all values with a non multithreading architecture is a pain in the ass …

A Database would be possible and thanks to esp librarys for direct database communication easy to realize.
But in my opinion setup a Database for only 8 values is a little big overkill …

Maybe someone has suggestions for other transmission ways … maybe i would be possible over the has api ?

Sorry for my bad english :frowning:

Thank you !
Greetings
Patrick

I think MQTT is still a good method to use. Especially if you use QOS2 as it ensures message receipt. Using database or api will both need you to code some sort of handshake confirmation whereas this is already built in to MQTT.

Could you not store your values to be sent in a queue and then iterate this to send mqtt messages when you have a connection?

native api from esphome could be a way to go :rocket: