I preferred the individual topics because my home made weather station only 
updates every 3 minutes other than rain and wind which is every 5 seconds 
.  I didn't want to send the whole kitten kabootle every 5 seconds so 
that's why I went that route.  So regarding the retain question, is it 
better to retain or not?

On Wednesday, July 8, 2026 at 10:30:00 a.m. UTC-4 Greg Troxel wrote:

> John Smith <[email protected]> writes:
>
> >>
> >> Perhaps, but it gets complicated.
> >
> > or if any variable was different enough than the last report.
> >
> >
> > This of course made easier by using multiple topics and setting retain on
> > published messages.
> >
> > Bonus points for parsing the retained messages on startup.
>
> Yes, but you need a timestamp in the message so that
>
> weewx goes offline (down, network)
>
> MQTT subscriber restarts
>
> doesn't lead to logging (now, old_data). And I don't think anybody does
> this. That's why I don't set retain.
>

-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/weewx-user/0bc80c1e-71d4-4ef6-be4d-ed428826d282n%40googlegroups.com.

Reply via email to