Clearing MQTT retained messages

When using your own ‘mosquitto’ broker and things start to get weird, ghost messages being received as soon as you start subscribing…

sudo service mosquitto start
sudo rm /var/lib/mosquitto/mosquitto.db
sudo service mosquitto start

This will crear your retained messages. Next time be careful with option “retain message” when playing with MQTT Dashboards…

Deixe um comentário

O seu endereço de email não será publicado. Campos obrigatórios marcados com *