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”

How to flash Sonoff S20 WiFi outlet with Tasmota MQTT firmware

Sonoff S20 (specs) is a smart power outlet that is controllable with a WiFi connection. The device comes with a built-in firmware and an accompanied mobile app, but it is also possible to flash it with custom firmware. This allows to control the device with standard MQTT protocol making integration to DIY home automation or IoT cloud systems easier. This post provides a step-by-step guide how to flash the device and also examples how to interface with it using MQTT. Continue reading “How to flash Sonoff S20 WiFi outlet with Tasmota MQTT firmware”

Using local MQTT broker for cloud and interprocess communication

Recently I was working on an embedded Linux IoT device that communicated with cloud using MQTT protocol. The software in the device was divided into multiple applications that also required interprocess communication. We ended up using MQTT also for the local communication, and it turned out to be a good decision. Continue reading “Using local MQTT broker for cloud and interprocess communication”