Page 1 of 1

MQTT Devices Aren't Publishing

Posted: 06 Nov 2019, 18:31
by prairietech
This used to work, but now that I have more time, something broke.
Running mega-10180126 on a Adafruit Feather. For testing have 2 generic system info devices for RSSI and Uptime. Task are enabled and assigned a Controller.
The Controller using openhab points to a Mosca broker in Node Red running on a RPi. Using default port 1883. User and pw left blank. Removed the leading / on the Controller Publish parameter.
Checking the espeasy log, I see MQTT topics published from the 2 system devices with correct values.

From Node Red I have a debug node connected to the broker showing this output.
I have also tried a Wemos running the same version of espeasy and also installed another Mosca broker on another RPi running NR with the same results.
I'm missing something here but can't figure out what?

{ packet: object, client: object }
11/6/2019, 10:58:43 AMnode: 3b73c854.346498
published : msg.payload : Object
{ packet: object, client: object }
11/6/2019, 10:58:51 AMnode: 3b73c854.346498
published : msg.payload : Object
{ packet: object, client: object }
11/6/2019, 10:58:53 AMnode: 3b73c854.346498
published : msg.payload : Object
{ packet: object, client: object }

Re: MQTT Devices Aren't Publishing

Posted: 07 Nov 2019, 12:53
by TD-er
I don't have any experience with the Moca MQTT broker myself.
Can you also connect with some MQTT viewer like MQTT box or any other and subscribe to the topic you try to send to?
Maybe that will give a bit more information than the log you showed.

To me it is not even clear the messages are published to the MQTT broker or maybe pushed but incomplete.

And just curious, why are you using such an old build? Was that the one that once worked on this configuration?

Re: MQTT Devices Aren't Publishing

Posted: 07 Nov 2019, 14:30
by prairietech
I'll plan on updating to the latest version hopefully this weekend.
It may be that monitoring the output of the Mosca MQTT broker with a debug node in Node Red doesn't display all of it's traffic like I assumed?
The Mosca node has an "output" to attach another node to. But maybe it isn't functional to determine if the broker is moving topics?

Re: MQTT Devices Aren't Publishing

Posted: 08 Nov 2019, 23:52
by prairietech
Regarding updating, when I go to the wiki, it appears the same R120 version listed as stable is what I used about a year ago.
Is there a newer "stable" version that I am not seeing?

Re: MQTT Devices Aren't Publishing

Posted: 09 Nov 2019, 01:09
by TD-er
prairietech wrote: 08 Nov 2019, 23:52 Regarding updating, when I go to the wiki, it appears the same R120 version listed as stable is what I used about a year ago.
Is there a newer "stable" version that I am not seeing?
Well, it hasn't yet been released as official stable version, since we have had an unfortunate amount of 'things causing instability'.
But the last few nightly builds have proven to be quite OK.
Sadly not as rock solid stable as the builds once have been, but we're at least getting into double-digit uptimes again (in days)

Re: MQTT Devices Aren't Publishing

Posted: 09 Nov 2019, 01:57
by prairietech
Could you provide a file name or link of where I can download a newer version you would recommend, please?

Re: MQTT Devices Aren't Publishing

Posted: 09 Nov 2019, 10:08
by TD-er
See the nightly builds here: https://github.com/letscontrolit/ESPEasy/releases

You could try the last one and then chose 'normal' with '4M1M' as flash size. (for 4MB flash nodes)