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?
how to Send command using MQTT broker service
Moderators: grovkillen, Stuntteam, TD-er
-
- New user
- Posts: 3
- Joined: 16 Oct 2017, 10:49
-
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
Re: how to Send command using MQTT broker service
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

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



-
- Normal user
- Posts: 241
- Joined: 21 Mar 2017, 17:35
Re: how to Send command using MQTT broker service
A space is missing after -m! And a host name with -h would be nice....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?
Use mosquitto_pub --help for a list of all commands.
-
- New user
- Posts: 3
- Joined: 16 Oct 2017, 10:49
Re: how to Send command using MQTT broker service
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
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
-
- New user
- Posts: 3
- Joined: 16 Oct 2017, 10:49
Re: how to Send command using MQTT broker service
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 ?!
sudo mosquitto_pub -t /espeasy/irsend/irtrans -m '2155855935'
the terminal appeared
IRTX :IR Code Sent
it's that all ?!
-
- Normal user
- Posts: 241
- Joined: 21 Mar 2017, 17:35
Re: how to Send command using MQTT broker service
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...)
-
- New user
- Posts: 3
- Joined: 03 Dec 2017, 10:28
Who is online
Users browsing this forum: Ahrefs [Bot], Anthropic Claude Bot [bot], OpenAI GPTBot [bot] and 1 guest