how to Send command using MQTT broker service

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
plutosherry
New user
Posts: 3
Joined: 16 Oct 2017, 10:49

how to Send command using MQTT broker service

#1 Post by plutosherry » 16 Oct 2017, 11:00

When I use mqtt to send infrared remote control instructions, but I don't know how to set up topic
I set it up like this, it didn't work:
mosquitto_pub -t /%sysname%/%taskname% -m'code'


Has anyone ever had the same problem?

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: how to Send command using MQTT broker service

#2 Post by grovkillen » 16 Oct 2017, 11:11

Have you studied the wiki?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
vader
Normal user
Posts: 241
Joined: 21 Mar 2017, 17:35

Re: how to Send command using MQTT broker service

#3 Post by vader » 16 Oct 2017, 11:38

plutosherry wrote: 16 Oct 2017, 11:00 When I use mqtt to send infrared remote control instructions, but I don't know how to set up topic
I set it up like this, it didn't work:
mosquitto_pub -t /%sysname%/%taskname% -m'code'


Has anyone ever had the same problem?
A space is missing after -m! And a host name with -h would be nice....
Use mosquitto_pub --help for a list of all commands.

plutosherry
New user
Posts: 3
Joined: 16 Oct 2017, 10:49

Re: how to Send command using MQTT broker service

#4 Post by plutosherry » 17 Oct 2017, 03:11

Thanks alots for u reply
I have been studied the wiki ,and i am also add space between the -m 'code'.
but it isn't work .... I suspect it's topic's problem

plutosherry
New user
Posts: 3
Joined: 16 Oct 2017, 10:49

Re: how to Send command using MQTT broker service

#5 Post by plutosherry » 17 Oct 2017, 04:11

if i typed the topic like below:
sudo mosquitto_pub -t /espeasy/irsend/irtrans -m '2155855935'
the terminal appeared
IRTX :IR Code Sent
it's that all ?!

User avatar
vader
Normal user
Posts: 241
Joined: 21 Mar 2017, 17:35

Re: how to Send command using MQTT broker service

#6 Post by vader » 18 Oct 2017, 18:43

What else should the terminal report? Maybe there ist a bit more in the log (Tools -> Log). Under Tools -> Advanced set the web log Level to 3 and check it out what it reports (I have no IR-module in use...)

harada57
New user
Posts: 3
Joined: 03 Dec 2017, 10:28

Re: how to Send command using MQTT broker service

#7 Post by harada57 » 03 Dec 2017, 10:57

I set it up like this, it didn't work:



สมัครgclub

Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests