I've pretty much settled on this approach. Minimally tested
try:
callback_api_version = mqtt.CallbackAPIVersion.VERSION1
self.client =
mqtt.Client(callback_api_version=callback_api_version,
client_id=mqtt_options['clientid'],
userdata=self.userdata,
clean_session=mqtt_options['clean_session'])
except AttributeError:
self.client = mqtt.Client(client_id=mqtt_options['clientid'],
userdata=self.userdata,
clean_session=mqtt_options['clean_session'])
rich
On Sunday 11 February 2024 at 15:21:58 UTC-5 matthew wall wrote:
> On Sunday, February 11, 2024 at 1:37:20 PM UTC-5 [email protected] wrote:
>
> It currently will not work with paho mqtt 2.0.0 or higher.
>
>
> rich, i too am interested in what you learn, as i will probably have to
> update weewx-mqtt as well. m
>
--
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 on the web visit
https://groups.google.com/d/msgid/weewx-user/90111f2c-4885-4ef9-bf61-52dd0abc02d2n%40googlegroups.com.