Now that I got a Mosquitto server up and running a few general questions occured regarding the persistence feature. On my previous system i was using a MySQL db to save the items states after a reboot. I want to use Mosquitto now to provide a easy solution for my arduinos to communicate with OH.
Do I need two items now? - one that sends a value to the broker (pub) for instance 10 °C set value for a thermostat and a second item (sub) that displays the value in my habpanel?
After a reboot: will the clients automatically trigger a request to the server to get the data? I configured my broker to permanently store if i remember right.
If I do need 2 items - is it worth transferring my old mysql persistence or should i run another server? I like to keep things clean.