Mosquitto database writes are not atomic and if power is lost during
a write the file will be permanently lost. This commit makes writes as
atomic as possible.
Signed-off-by: Keegan Callin <firstname.lastname@example.org>
All checks have passed
2 successful checks
— The Travis CI build passed