I have an MQTT broker running on a Raspberry Pi (192.168.1.124). Been there for a couple of years.
I am trying to send an MQTT message to that broker from another computer using:
But the command never gets to the light, and I see nothing on my MQTT box that is connected to the broker at 192.168.1.124 and subscribed to the cmnd/desklight/power topic.
" For starters, mqtt_sub -h 192.168.1.124 -t cmnd/desklight/# Enter the command from another terminal (same or different machine) and see what you get."
This works
" You should not have a trailing / on the topic, though I don't know whether that is the problem."
That was it. I hoped it would be something subtle like that.
" Use a tool like Mqtt-explorer to see what's really on the "wire""
Thanks for the reminder. I hadn't used that tool in quite a while, and forgot that I had it.