I’m currently running several MQTT IOT devices (mqtt hardware: raspberry pi 2, mqtt broker: Mosquitto, devices mostly ESP8266). As firmware I’m running a custom blend of the esp8266-homie firmware. This worked fine for months but now I’m facing an issue regarding the use of $ topics.
A simple example, my devices publish their online status to a topic: home/device/$online and the will message will make sure this goes to false when the device disconnects.
When running this command, I can see that topic (amongst the others):
mosquitto_sub -h <brokerIP> -u <username> -P <password> -t home/device/# -v
output:
home/device/$online true
so the topic is there and does contain data, great! So logic dictates that running this one should return the true value:
mosquitto_sub -h <brokerIP> -u <username> -P <password> -t home/device/$online -v
output: Nothing
but sadly, this isn’t returning anything since 2 days. Only thing I can think of that changed might be an update on my raspberry pi.