MQTT Connects/Disconnects every loop (?)

64 views
Skip to first unread message

andyhud...@googlemail.com

unread,
Oct 29, 2020, 10:34:38 AM10/29/20
to weewx-user
Afternoon all,

Using the MQTT extension, all is working but i note in my mqtt logs weex connects and the disconnects on every send. I would have thought the mqtt would stay connected? Its kind of filling up my log file so any thoughts would be great - is this normal?

2020-10-29 14:31:28: New client connected from 147.147.209.132 as weewx_50f0a7c2 (c1, k60, u''). 2020-10-29 14:31:28: Client weewx_50f0a7c2 disconnected.

Andy

Greg Troxel

unread,
Oct 29, 2020, 1:17:29 PM10/29/20
to 'andyhud...@googlemail.com' via weewx-user

"'andyhud...@googlemail.com' via weewx-user"
That's what mine looks like too.

Agreed it would be great if someone(tm) wrote a patch to keep the
connection open, and did it correctly so that after arbitrary errors it
recovers.
signature.asc

Garry A Lockyer

unread,
Oct 29, 2020, 1:24:22 PM10/29/20
to weewx...@googlegroups.com
Change the logging level in weewx.conf for MQTT so that routine events are not logged. I usually set everything to WARNING, unless I’m working on a specific problem or subsystem.

Regards,

Garry Lockyer
C: +1.250.689.0686
E: Ga...@Lockyer.ca


> On Oct 29, 2020, at 10:17, Greg Troxel <g...@lexort.com> wrote:
>
> 
> --
> You received this message because you are subscribed to the Google Groups "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/rmimu05ostb.fsf%40s1.lexort.com.

Andy Hudson-Smith

unread,
Oct 29, 2020, 5:08:32 PM10/29/20
to weewx...@googlegroups.com
Its not the weewx logs that are bothering me - its the mqtt logs, connecting and disconnecting is filling them up - mqtt is something that is made to remain connected to reduce load so I'm not sure it disconnects after every loop?

Andy

You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/lNdYh-aPuos/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/B86E40BE-26D2-4263-83D2-457E319C5CA4%40gmail.com.

Garry A Lockyer

unread,
Oct 29, 2020, 9:14:27 PM10/29/20
to weewx...@googlegroups.com
Ah!  Sorry!  There are settings for Mosquitto logging. See  https://mosquitto.org/man/mosquitto-conf-5.html

Regards,

Garry Lockyer
E: Ga...@Lockyer.ca


On Oct 29, 2020, at 14:08, 'Andy Hudson-Smith' via weewx-user <weewx...@googlegroups.com> wrote:


Reply all
Reply to author
Forward
0 new messages