Code: Select all
mqtt=">[broker:/ESP1/cmd:command:on:rfsend,1111111],>[broker:/ESP1/cmd:command:off:rfsend,22222222]
In your case - try 'mosquitto_pub -t "home/esp014/cmd" -m "rfsend,1000010000,5"
Hope this helps..
Code: Select all
mqtt=">[broker:/ESP1/cmd:command:on:rfsend,1111111],>[broker:/ESP1/cmd:command:off:rfsend,22222222]
Code: Select all
mosquitto_pub -t /ESP1/cmd -m 'lcdcmd,on'
mosquitto_pub -t /ESP1/cmd -m 'lcdcmd,off'