Subscribe MQTT

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
-macke-
Normal user
Posts: 20
Joined: 03 Sep 2016, 21:53

Subscribe MQTT

#1 Post by -macke- » 03 Sep 2016, 21:56

Hi

I want to subscribe to a MQTT message from another program like this: temperature/outside. Then I want to display the value on my LCD 2004. Is the possible?

Drum
Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: Subscribe MQTT

#2 Post by Drum » 04 Sep 2016, 11:54

I would think so, but as there is only 1 subscribe template, I think most people publish a message for the unit. Although there is a plugin in the playground which may work as well. There are some threads on displaying MQTT messages. Globalsync if the sender is also an esp. I need to look more on this too, as I want to send messages from Node-red.. I believe people are doing this as well.

http://www.esp8266.nu/forum/viewtopic.php?t=1149
http://www.esp8266.nu/index.php/EasyGlobalSync
Also have a look here http://www.esp8266.nu/forum/viewtopic.php?f=4&t=1148 still in the plugin playground I think.

I am sure it is posible, but you will need to do some testing to see what works best for you.
MQTT, lcd and display are not going to work well in the search, too many of them. Try using google to search the site as well. Works better sometimes.

Drum
Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: Subscribe MQTT

#3 Post by Drum » 04 Sep 2016, 12:15


-macke-
Normal user
Posts: 20
Joined: 03 Sep 2016, 21:53

Re: Subscribe MQTT

#4 Post by -macke- » 04 Sep 2016, 23:13

Thanks for your answer! I think the MQTT import would be perfect for me. But I hade som problem to installed.

I get this error when I compile it (first time I install a plugin in so my av done something wrong)

WARNING: library LiquidCrystal_I2C-master claims to run on [avr] architecture(s) and may be incompatible with your current board which runs on [esp8266] architecture(s).
C:\Users\Macke.BLUEBERRY\Documents\Arduino\libraries\ESPEasy\_P210_MQTTImport.ino: In function 'float string2float(String)':
_P210_MQTTImport:450: error: redefinition of 'float string2float(String)'

float string2float(String myString) {

^

Extra_Utilities:130: error: 'float string2float(String)' previously defined here

float string2float(String myString) {

Drum
Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: Subscribe MQTT

#5 Post by Drum » 05 Sep 2016, 00:48

I would check back with the thread on the plugin, it is in the playground so it my have issues.
No idea what the status is, but that would be the place to ask about it.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 15 guests