grovkillen wrote: ↑29 Oct 2018, 06:23
I use MQTT Snooper for easier tests of MQTT communication. But you need to send the message as plain value.
Code: Select all
mosquitto_pub -h localhost -m '1' -t 'cmdMQTT'
sorry...i'm a little bit lost
i create a device "generic MQTT like this:
- device_9.png (36.72 KiB) Viewed 7518 times
then i create the rules:
Code: Select all
On cmdMQTT#Code=1 Do
Publish,%sysname%/Time,%systime%
EndOn
On cmdMQTT#Code=2 Do
Publish,%sysname%/IP,%ip%
EndOn
i download the android app mqtt snooper
i create the host of raspberry (where i have installed my mqtt broker)
now if i go inside the "in" and paste the code
Code: Select all
mosquitto_pub -h localhost -m '1' -t 'cmdMQTT'
i do not receive nothing...
is it correct?