How to set up persistent storage for Mosquitto MQTT broker

Mosquitto is a lightweight MQTT broker that is suitable for embedded use. It also provides built-in support to persist and store messages which can be used to implement reliable communication even when the network is not stable. This post describes how to set up the persistent storage, what are the main parameters to tune it and how to troubleshoot the setup. Continue reading “How to set up persistent storage for Mosquitto MQTT broker”