Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Paho Python 1.2 available

Awesome! Is it just me, or did pypi remove the download stats for packages? I can’t see them anymore at https://pypi.python.org/pypi/paho-mqtt

Benjamin –

Le 17/06/2016 17:31, « Roger Light » <paho-dev-bounces@xxxxxxxxxxx au nom de roger@xxxxxxxxxx> a écrit :

Dear all,

The Paho Python client version 1.2 is now available as part of the
Paho 1.2 release.

This fixes a load of bugs and adds some exciting new features.

Websockets support - use "Client.connect(transport='websockets')"

Client.publish() now returns an MQTTMessageInfo object instead of an
(rc, mid) tuple. This object behaves like the tuple for backwards
compatibility, but adds two functions is_published() and
wait_for_published() which allow you to check if a message has been
published or to block until a message has been published (only works
with threaded mode)

New helper functions paho.mqtt.subscribe.simple() and .callback() have
been added. These allow you to create subscribing clients very easily.
.simple() subscribes to a topic and returns a set number of messages.
.callback() runs a callback function every time a message is received.

If the subscribe helper functions sound good, don't forget that
paho.mqtt.publish.single() and .mutiple() already exist.

Thanks to everyone who contributed to this release.

Cheers,

Roger
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev





Back to the top