]> git.michaelhowe.org Git - packages/p/paho-mqtt.git/log
packages/p/paho-mqtt.git
11 years agoAdd upload target that runs tests first.
Roger Light [Thu, 1 May 2014 12:14:29 +0000 (13:14 +0100)]
Add upload target that runs tests first.

Change-Id: Id5e235e166436539ed4d12b7f70c491dc09fd16d

11 years agoPUBREL fix.
Roger Light [Thu, 1 May 2014 06:22:35 +0000 (07:22 +0100)]
PUBREL fix.

Change-Id: Ic7b095c00581e2ec7dc7fc89b227a38f3491ce01

11 years agoImplement multiple callbacks for incoming messages.
Roger Light [Wed, 30 Apr 2014 22:35:23 +0000 (23:35 +0100)]
Implement multiple callbacks for incoming messages.

Change-Id: I340301dab8f9171fbb209b71e360ac0d3b114048

11 years agoSimplify on_message handling code.
Roger Light [Tue, 29 Apr 2014 23:43:06 +0000 (00:43 +0100)]
Simplify on_message handling code.

Change-Id: Id8833f29c2054baece19ad42be6c9dd4cfcacb4c

11 years agoFix topic matching edge case.
Roger Light [Mon, 28 Apr 2014 20:22:02 +0000 (21:22 +0100)]
Fix topic matching edge case.

Thanks to Tobias Assarsson.

Change-Id: If98891597ac47488a072389d483dba15cf54c520

11 years agoRemove incorrect toc entry.
Roger Light [Fri, 25 Apr 2014 12:29:13 +0000 (13:29 +0100)]
Remove incorrect toc entry.

Change-Id: I617865e37fdee3796e792ec8c1a038751971d394

11 years agoAdd a simple example.
Roger Light [Fri, 25 Apr 2014 10:49:57 +0000 (11:49 +0100)]
Add a simple example.

Change-Id: Iaadf10ab339c31da7351b792fb3b3e642c6f4bd5

11 years agoDon't distribute test files.
Roger Light [Tue, 22 Apr 2014 22:07:18 +0000 (23:07 +0100)]
Don't distribute test files.

Change-Id: I9bfb4f6abfde536f57e6a49adb23965beb157187

11 years agoAdd complete documentation to README.
Roger Light [Tue, 22 Apr 2014 17:15:03 +0000 (18:15 +0100)]
Add complete documentation to README.

Resolves #431228.

Change-Id: Ie2f2e9d744d11cc1ab687e14fe84d0cb4fdb0061

11 years agoConvert README to reStructuredText for PyPi.
Roger Light [Tue, 22 Apr 2014 11:51:17 +0000 (12:51 +0100)]
Convert README to reStructuredText for PyPi.

Change-Id: I060fa15a7afb6b7bc97e067dffcf7ea9c13ab923

11 years agoUpdate in-client version number.
Roger Light [Mon, 21 Apr 2014 22:38:12 +0000 (23:38 +0100)]
Update in-client version number.

Change-Id: I5445a4b2677f39dd6f5873f4d740abd4fa9a6665

11 years agoVersion number bump.
Roger Light [Mon, 21 Apr 2014 22:17:54 +0000 (23:17 +0100)]
Version number bump.

Change-Id: I68b728962911ff05847914fa6393988fe5ad1960

11 years agoMANIFEST.in for setup.py sdist.
Roger Light [Mon, 21 Apr 2014 22:08:24 +0000 (23:08 +0100)]
MANIFEST.in for setup.py sdist.

Change-Id: I1e19955387f6bb6b8633628135dbd24fd5d9a199

11 years ago/usr/bin/python -> /usr/bin/env python
Roger Light [Mon, 21 Apr 2014 15:14:55 +0000 (16:14 +0100)]
/usr/bin/python -> /usr/bin/env python

Change-Id: Ib43b19c660c2724834014219929d1d6281518e34

11 years agoAllow separate Python2/Python3 testing.
Roger Light [Mon, 21 Apr 2014 15:08:33 +0000 (16:08 +0100)]
Allow separate Python2/Python3 testing.

Change-Id: Iaf3a42ba72698fc1d32c7296b428e5fefcb4cc20

11 years agoFix socket error handling on Windows.
Roger Light [Wed, 16 Apr 2014 19:52:29 +0000 (20:52 +0100)]
Fix socket error handling on Windows.

Simplify overall socket error handling.

Fixes bug #431698.

Change-Id: Ia291959b8abb701355d651c4ace442d03c3b0808

11 years agoAdd CONTRIBUTING.md.
Roger Light [Thu, 27 Mar 2014 12:33:15 +0000 (12:33 +0000)]
Add CONTRIBUTING.md.

Change-Id: If8603856c6798c6ecac2ede2631fda5fee56da63

11 years agoFix topic matching for $ topics.
Roger Light [Sun, 16 Mar 2014 23:21:00 +0000 (23:21 +0000)]
Fix topic matching for $ topics.

Change-Id: I7a3f73037cc11333316cfd8503aad23ce70e8661

11 years agoFix socketpair read/write when publishing large messages.
Roger Light [Sun, 16 Mar 2014 20:37:38 +0000 (20:37 +0000)]
Fix socketpair read/write when publishing large messages.

Change-Id: I376a0df26196a7c377652c101bc13381008190af

11 years agoStart of MQTT v3.1.1 support.
Roger Light [Tue, 18 Feb 2014 23:32:19 +0000 (23:32 +0000)]
Start of MQTT v3.1.1 support.

Change-Id: Id0a08ab798a9675ce18da4962d56172522248b5b

11 years agoFix ssl tests.
Roger Light [Tue, 18 Feb 2014 23:31:06 +0000 (23:31 +0000)]
Fix ssl tests.

Change-Id: I73e9ae227c87b0b49a49853c964f9b0338eed9d1

11 years agoAdd paho.mqtt.publish.multiple() helper function.
Roger Light [Fri, 14 Feb 2014 17:58:55 +0000 (17:58 +0000)]
Add paho.mqtt.publish.multiple() helper function.

Change-Id: Ic6a39e870f6ff1db89c78096f8629397bfeb08da

11 years agoFix import typo.
Roger Light [Wed, 12 Feb 2014 21:41:35 +0000 (21:41 +0000)]
Fix import typo.

Change-Id: I1f077cdf41e32e08d69675d0f9afc23557f57fdc

11 years agoBreak out of select() on publish()/subscribe() etc.
Roger Light [Wed, 5 Feb 2014 20:15:01 +0000 (20:15 +0000)]
Break out of select() on publish()/subscribe() etc.

When a call to publish()/subscribe()/unsubscribe()/disconnect() is made
and the client is using the threaded mode, the outgoing command will be
delayed by 0.5 seconds on average. This commit breaks out of select() to
remove the delay.

Change-Id: I7a669604c767abb0bcc399bdf1fe3b82c7ef9539

11 years agoBump version.
Roger Light [Tue, 4 Feb 2014 18:16:45 +0000 (18:16 +0000)]
Bump version.

Change-Id: I486af57fdc89d14b2110f2900c498c7820bf7e2b

11 years agoRemove irrelevant license file.
Roger Light [Tue, 4 Feb 2014 18:03:44 +0000 (18:03 +0000)]
Remove irrelevant license file.

Change-Id: I47d37a958361508d251084bf99b3eee22e044fff

11 years agoAdd publish helper module.
Roger Light [Tue, 4 Feb 2014 18:02:32 +0000 (18:02 +0000)]
Add publish helper module.

publish.py allows a single message to be cleanly sent using one line of
code.

Change-Id: I8bc1ac838bcece4b99f5ff78e1c3fb74ac4710e4

11 years agoClose connection after sending a DISCONNECT.
Roger Light [Tue, 4 Feb 2014 17:59:03 +0000 (17:59 +0000)]
Close connection after sending a DISCONNECT.

Change-Id: I8b500c721754f2868e55c2d89abffcbbc7ccc95d

11 years agoAdd about.html.
Roger Light [Thu, 23 Jan 2014 14:39:36 +0000 (14:39 +0000)]
Add about.html.

11 years agoAlways return tuple in un/subscribe().
Roger Light [Tue, 31 Dec 2013 22:37:43 +0000 (22:37 +0000)]
Always return tuple in un/subscribe().

11 years agoUse loop_forever() in example.
Roger Light [Tue, 31 Dec 2013 22:37:18 +0000 (22:37 +0000)]
Use loop_forever() in example.

11 years agoFix typo.
Roger Light [Tue, 31 Dec 2013 21:39:39 +0000 (21:39 +0000)]
Fix typo.

Thanks to Jan Nijs.

11 years agoCompatibility class for porting from mosquitto.py.
Roger Light [Sat, 21 Dec 2013 21:39:11 +0000 (21:39 +0000)]
Compatibility class for porting from mosquitto.py.

11 years agoChange package name and drop version number.
Roger Light [Sat, 21 Dec 2013 20:01:24 +0000 (20:01 +0000)]
Change package name and drop version number.

Ready for uploading to pypi.

11 years agoSeparate in/out message queues.
Roger Light [Fri, 20 Dec 2013 22:44:30 +0000 (22:44 +0000)]
Separate in/out message queues.

11 years agoUse dict instead of MQTTPacket.
Roger Light [Sun, 8 Dec 2013 22:20:27 +0000 (22:20 +0000)]
Use dict instead of MQTTPacket.

11 years agoUse dict instead of MQTTInPacket.
Roger Light [Sun, 8 Dec 2013 22:11:11 +0000 (22:11 +0000)]
Use dict instead of MQTTInPacket.

11 years agoFix typo from MOSQ porting.
Roger Light [Sat, 7 Dec 2013 23:50:42 +0000 (23:50 +0000)]
Fix typo from MOSQ porting.

11 years agoHandle null will payloads correctly when connecting.
Roger Light [Sat, 7 Dec 2013 23:50:03 +0000 (23:50 +0000)]
Handle null will payloads correctly when connecting.

11 years agoFix topic comparison.
Roger Light [Sat, 7 Dec 2013 23:43:45 +0000 (23:43 +0000)]
Fix topic comparison.

11 years agoBlock in loop_stop() until all messages are sent.
Roger Light [Sat, 7 Dec 2013 23:40:01 +0000 (23:40 +0000)]
Block in loop_stop() until all messages are sent.

11 years agoTopics are no longer normalised.
Roger Light [Sat, 7 Dec 2013 23:34:59 +0000 (23:34 +0000)]
Topics are no longer normalised.

11 years agopep8 fixes.
Roger Light [Sat, 7 Dec 2013 23:33:20 +0000 (23:33 +0000)]
pep8 fixes.

11 years agoDon't fail reconnecting when broker is unavailable.
Roger Light [Sat, 7 Dec 2013 23:24:48 +0000 (23:24 +0000)]
Don't fail reconnecting when broker is unavailable.

11 years agoRecord version number in code.
Roger Light [Sat, 7 Dec 2013 23:23:31 +0000 (23:23 +0000)]
Record version number in code.

11 years agoHandle EAGAIN on Windows.
Roger Light [Sat, 7 Dec 2013 23:21:53 +0000 (23:21 +0000)]
Handle EAGAIN on Windows.

11 years agoFix TLS subjectAltName verification.
Roger Light [Sat, 7 Dec 2013 23:20:08 +0000 (23:20 +0000)]
Fix TLS subjectAltName verification.

11 years agoClose socket after sending DISCONNECT.
Roger Light [Sat, 7 Dec 2013 22:55:00 +0000 (22:55 +0000)]
Close socket after sending DISCONNECT.

11 years agoAdd support for un/subscribing to multiple topics.
Roger Light [Sat, 7 Dec 2013 22:47:19 +0000 (22:47 +0000)]
Add support for un/subscribing to multiple topics.

11 years agoFix version check logic.
Roger Light [Sat, 7 Dec 2013 22:36:56 +0000 (22:36 +0000)]
Fix version check logic.

11 years agoEnable loading without ssl import
Jan-Piet Mens [Wed, 27 Nov 2013 20:51:46 +0000 (21:51 +0100)]
Enable loading without ssl import
   Until now, an `import mosquitto' fails on platforms without ssl.
   This patch allows client.py to be used in spite of not being
   able to import ssl; If a client attempts to use the tls_()
   functions, an error is raised.

Signed-off-by: Jan-Piet Mens <jpmens@gmail.com>
11 years agoAdd support for DNS SRV records
Jan-Piet Mens [Wed, 13 Nov 2013 10:59:06 +0000 (11:59 +0100)]
Add support for DNS SRV records

adds preliminary support for DNS SRV records in a new
function connect_srv(domain=None). If domain is None
a lookup on the domain of the host is attempted. Otherwise
domain is a DNS domain name to query for the SRV records.
change service to IANA-assigned

Signed-off-by: Jan-Piet Mens <jpmens@gmail.com>
11 years agoFix support for Python 2.6, 3.0, 3.1.
Roger Light [Mon, 26 Aug 2013 20:13:46 +0000 (21:13 +0100)]
Fix support for Python 2.6, 3.0, 3.1.

11 years agoImprove handling of disconnect() with threaded mode.
Roger Light [Mon, 26 Aug 2013 19:55:59 +0000 (20:55 +0100)]
Improve handling of disconnect() with threaded mode.

11 years agoImplement SSL hostname verification.
Roger Light [Mon, 29 Jul 2013 19:52:01 +0000 (20:52 +0100)]
Implement SSL hostname verification.

11 years agoFix QoS 2 reconnect handling.
Roger Light [Mon, 29 Jul 2013 18:40:52 +0000 (19:40 +0100)]
Fix QoS 2 reconnect handling.

11 years agoRemove old .hgtags file.
Roger Light [Mon, 24 Jun 2013 20:11:46 +0000 (21:11 +0100)]
Remove old .hgtags file.

11 years agoAdd example of using the client in a class.
Roger Light [Mon, 24 Jun 2013 20:10:03 +0000 (21:10 +0100)]
Add example of using the client in a class.

11 years agoExample program to clear retained topic trees.
Roger Light [Sat, 22 Jun 2013 22:18:38 +0000 (23:18 +0100)]
Example program to clear retained topic trees.

11 years agoOnly modify sys.path if paho.mqtt.client not found.
Roger Light [Sat, 22 Jun 2013 22:18:10 +0000 (23:18 +0100)]
Only modify sys.path if paho.mqtt.client not found.

11 years agoHandle will_payload==None.
Roger Light [Sat, 22 Jun 2013 21:40:00 +0000 (22:40 +0100)]
Handle will_payload==None.

11 years agoImplement inflight message handling.
Roger Light [Sat, 22 Jun 2013 21:38:49 +0000 (22:38 +0100)]
Implement inflight message handling.

11 years agoAdd support for binding client connections to a local interface.
Roger Light [Sat, 22 Jun 2013 21:18:37 +0000 (22:18 +0100)]
Add support for binding client connections to a local interface.

11 years agoPrint retain as int not bool.
Roger Light [Sat, 22 Jun 2013 21:15:17 +0000 (22:15 +0100)]
Print retain as int not bool.

11 years agoAuto generate client id if it is None as well as "".
Roger Light [Sat, 22 Jun 2013 21:11:47 +0000 (22:11 +0100)]
Auto generate client id if it is None as well as "".

11 years agoUse loop_forever() in _thread_main().
Roger Light [Sat, 22 Jun 2013 21:10:30 +0000 (22:10 +0100)]
Use loop_forever() in _thread_main().

11 years agoMatch version number to other Paho modules.
Roger Light [Sat, 22 Jun 2013 21:00:09 +0000 (22:00 +0100)]
Match version number to other Paho modules.

11 years agoAdd more topic matching tests.
Roger Light [Sat, 22 Jun 2013 20:57:40 +0000 (21:57 +0100)]
Add more topic matching tests.

11 years agoAdd missing file and fix associated tests.
Roger Light [Fri, 21 Jun 2013 17:09:18 +0000 (18:09 +0100)]
Add missing file and fix associated tests.

11 years agoChange old version tags to be mosquitto specific.
Roger Light [Wed, 19 Jun 2013 09:19:02 +0000 (10:19 +0100)]
Change old version tags to be mosquitto specific.

11 years agoFix license classifiers and version number.
Roger Light [Wed, 19 Jun 2013 09:18:46 +0000 (10:18 +0100)]
Fix license classifiers and version number.

11 years agoChange licensing BSD -> dual EPL/EDL.
Roger Light [Tue, 18 Jun 2013 22:12:19 +0000 (23:12 +0100)]
Change licensing BSD -> dual EPL/EDL.

--HG--
rename : LICENSE.txt => epl-v10

11 years agoAdd .gitignore, remove .hgeol and .hgignore.
Roger Light [Mon, 17 Jun 2013 22:52:16 +0000 (23:52 +0100)]
Add .gitignore, remove .hgeol and .hgignore.

11 years agoBasic readme based on Paho C client.
Roger Light [Mon, 17 Jun 2013 22:45:08 +0000 (23:45 +0100)]
Basic readme based on Paho C client.

11 years agoMore mosq->paho name changes.
Roger Light [Mon, 17 Jun 2013 08:36:28 +0000 (09:36 +0100)]
More mosq->paho name changes.

11 years agoFix makefiles.
Roger Light [Mon, 17 Jun 2013 08:35:23 +0000 (09:35 +0100)]
Fix makefiles.

11 years agoFix tests.
Roger Light [Sun, 16 Jun 2013 23:00:52 +0000 (00:00 +0100)]
Fix tests.

--HG--
rename : test/mosq_test.py => test/paho_test.py

11 years agoFix setup.py for new packages.
Roger Light [Sun, 16 Jun 2013 22:40:15 +0000 (23:40 +0100)]
Fix setup.py for new packages.

11 years agoRename src, add required submodule files and fix example.
Roger Light [Sun, 16 Jun 2013 21:55:44 +0000 (22:55 +0100)]
Rename src, add required submodule files and fix example.

11 years agoStart of reorganisation for Paho.
Roger Light [Sat, 15 Jun 2013 21:20:20 +0000 (22:20 +0100)]
Start of reorganisation for Paho.

--HG--
rename : lib/python/sub.py => examples/sub.py
rename : lib/python/setup.py => setup.py
rename : lib/python/mosquitto.py => src/paho/mqtt/mosquitto.py

11 years agoFix possible thread locking situation.
Roger Light [Tue, 7 May 2013 08:52:23 +0000 (09:52 +0100)]
Fix possible thread locking situation.

11 years agoRemove unused variables.
Roger Light [Mon, 22 Apr 2013 20:26:35 +0000 (21:26 +0100)]
Remove unused variables.

11 years agoFix comparison errors reported by pychecker.
Roger Light [Mon, 22 Apr 2013 20:25:13 +0000 (21:25 +0100)]
Fix comparison errors reported by pychecker.

11 years agoRemove unused uthash license.
Roger Light [Fri, 19 Apr 2013 20:40:24 +0000 (21:40 +0100)]
Remove unused uthash license.

11 years agoAdd OpenSSL attribution.
Roger Light [Fri, 19 Apr 2013 20:34:10 +0000 (21:34 +0100)]
Add OpenSSL attribution.

11 years agoInitial contribution.
Roger Light [Fri, 25 Jan 2013 10:31:19 +0000 (10:31 +0000)]
Initial contribution.