Does ESPEasy work with Mosquitto MQTT

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
billymac
Normal user
Posts: 11
Joined: 16 Mar 2017, 16:11

Does ESPEasy work with Mosquitto MQTT

#1 Post by billymac » 17 Mar 2017, 14:44

I am having trouble getting my ESP Devkit to talk to MQTT
I am using:
Node-Red + Mosquitto MQTT on Raspberry Pi
EspEasy on DevKit

MQTT is working- I can publish a topic from putty and I see it in Node-Red
But I cannot send anything from ESPEasy and see it in Node-Red
For my ESP configuration, I am sending system data for uptime and wifi every 10 seconds and I have specified the Mosquitto IP and port as well as the user and pass
Any suggestions ho to troubleshoot this?
I was thinking of maybe installing a mqtt spy program to see if espeasy is sending anything
Or wireshark maybe??
Should EspEasy work with Mosquitto?
It is not selectable in settings- only OpenHab MQTT

ToniA
Normal user
Posts: 69
Joined: 26 Aug 2016, 20:37

Re: Does ESPEasy work with Mosquitto MQTT

#2 Post by ToniA » 17 Mar 2017, 17:43

Yes, it works. I have Raspbian Jessie, and I have installed it like this:

Code: Select all

apt-get install mosquitto mosquitto-clients
Then you just enter the IP address of your Raspberry as the MQTT server address, and that's it. The type of the MQTT just tells ESPEasy which topics and data formats to use.

You can use mosquitto_sub and mosquitto_pub to troubleshoot, for example with Domoticz MQTT:

Code: Select all

mosquitto_sub -t domoticz/in

mrwee
Normal user
Posts: 225
Joined: 31 Aug 2016, 12:52

Re: Does ESPEasy work with Mosquitto MQTT

#3 Post by mrwee » 17 Mar 2017, 18:58

Look in the Logs on espeasy, you should see the publish commands there. Which version of espeasy are you using?

billymac
Normal user
Posts: 11
Joined: 16 Mar 2017, 16:11

Re: Does ESPEasy work with Mosquitto MQTT

#4 Post by billymac » 30 Mar 2017, 17:57

To answer my own question- yes it works great
Ive been using it since just after posting the question
I guess when you think about it MQTT is MQTT and shouldn't matter what brand you use.
EspEasy just points to the MQTT IP address and port and talks using simple topics which can be anything really
Whether you are using Mosquitto or BrandXYZ, the topic would be the same for both

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 13 guests