Wykres commitów

89 Commity (69e3e0bc5b6909c199078c6ab2b2f059a2b53176)

Autor SHA1 Wiadomość Data
shipmints 69e3e0bc5b Slight enhancement to client_tasks.pop() in cancel tasks and disconnect logic. 2020-02-17 14:56:59 -05:00
shipmints 138313a3eb Corrected memory leak of task refs in client deliver_message on timeout causing client_tasks to grow forever, in plugin/manager causing _fired_events to grow forever 2020-02-14 20:36:17 -05:00
andvikt 8a20cbe0c7
Update client.py
python 34 support
2019-06-04 10:17:17 +03:00
Andrey Viktorov 99d76012ea Added cancel pending tasks coro 2019-06-03 22:42:19 +03:00
Richard Kojedzinszky a6c8810d5b hbmqtt.client: fix a Task leak
We should cleanup all pending events.
2019-03-18 19:19:05 +01:00
Nicolas 1608573af6
Merge pull request #154 from burnpanck/bugfix/await-asyncio.wait-in-mqtt-connected
do actually wait for the connection in the mqtt_connection decorator
2019-03-11 12:10:17 +01:00
Zdzislaw Krajewski e9db78a3b0 Add option for infitie reconnecting.
It simplifies reconnection logic. In case of long running services which publish data to server,
there is need to reconnect anyway. When reconnect_retries elapses, then reconnection have to be
done manually. Carrying about it inside coroutine which publishing data introduces complexity.
2019-02-25 14:55:51 +01:00
Bharath Yadavally e140ec045a Added missing ack_timeout param expected in mqtt_publish method of handler.py 2019-01-08 15:28:03 +11:00
Schneider 0ceadbff86 replaced tabs with spaces 2018-12-05 15:55:30 +01:00
Schneider 7cc5e17988 improved documentation and script integration of extra_headers 2018-12-05 15:39:31 +01:00
erics465 ced07f90dd
added passthrough of websocket extra headers 2018-11-20 12:42:49 +01:00
Yves Delley bffed55a17 do actually wait for the connection in the mqtt_connection decorator 2018-11-13 17:56:59 +01:00
Thinh Nguyen 5a241d7739 Only setting session username/password if it is not already set. This is to prevent failures when the broker is reconnecting without username/password 2018-10-29 13:55:09 +11:00
Richard Kojedzinszky deeae6a230 MQTTClient: init should not overwrite global defaults 2018-09-22 14:28:31 +02:00
Nicolas 1af9e7f99c
Merge pull request #139 from gdraynz/py37
python3.7 support
2018-07-16 21:06:44 +02:00
Richard Kojedzinszky 44479b73b9 Handle no more reconnect case in mqtt_connected decorator
Fixes #140
2018-07-05 21:29:07 +02:00
Guillaume Desvé 31888f8e69 python3.7 support 2018-06-29 15:56:27 +02:00
krh 75a85d1ea4 Import InvalidHandshake from 'websockets.exceptions' not 'websockets.handshake', since websockets 5.0 no longer provides that alias. 2018-05-22 11:28:43 -07:00
Vegard Storheil Eriksen 7df731790a Re-raise exception from deliver_task in MQTTClient.deliver_message().
deliver_task will raise a ClientException to signal a connection loss.
Passing it on to the caller instead of silently ignoring it lets the
caller handle the connection loss. Exiting the function early also
avoids an IndexError when trying to pop from client_tasks.

Fixes #106
2018-02-13 23:58:48 +01:00
mi3z 47e37404fd TLS connections can be established by default with system certificates to publish domains (for example to 'mqtts://iot.eclipse.org') - the client only requires cafiles if the broker provides self signed certificates 2017-11-22 10:40:20 +01:00
Nguyễn Hồng Quân 04098b7ba8 Fix the Client doc 2017-10-18 17:54:19 +07:00
Guillaume Desvé 3fe4bacf02 Fix missing positional argument on 'cancel_tasks' 2017-10-10 16:19:37 +02:00
Stein Magnus Jodal 559c18f681 flake8: Fix all F403, F405, F821 import warnings 2017-08-07 01:23:21 +02:00
Stein Magnus Jodal 6435e4239c flake8: Fix all F401 unused imports warnings 2017-08-07 01:23:21 +02:00
Stein Magnus Jodal 177bfb627c flake8: Fix all E1xx indentation warnings 2017-08-07 01:23:21 +02:00
Stein Magnus Jodal ed676945b4 flake8: Fix all Wxxx whitespace and newline warnings 2017-08-07 01:23:21 +02:00
Stein Magnus Jodal df2c9b8a43 flake8: Fix all E3xx newline warnings 2017-08-07 01:23:20 +02:00
Stein Magnus Jodal a89e744a47 Change deprecated warn() to warning() 2017-07-26 14:06:17 +02:00
Nicolas cd58d1dabc Fix #60 2017-06-02 21:41:17 +02:00
Nicolas 0dbef5005a Fix #74
set_exception only for not done tasks.
2017-06-02 21:37:10 +02:00
dansheme 605747723d fixed issues while using non default async loop 2017-03-12 15:50:28 +02:00
cfchou 5a2830b6f8 disables verification of the server hostname in the server certificate 2016-09-22 16:39:14 +08:00
Nicolas b7401443c8 Fix #40 and add test cases 2016-05-31 21:40:10 +02:00
Nicolas e9b806348e Fix #32 2016-04-10 23:02:10 +02:00
Nicolas dd04b44a57 Fix timeout management on message delivery 2016-04-10 21:46:52 +02:00
Nico 82985b6f1c Improve documentation 2015-11-13 22:07:58 +01:00
Nico 35c48ff9a8 Improve documentation 2015-11-12 22:57:00 +01:00
Nico 6c0657b438 Documentation update 2015-11-11 22:40:38 +01:00
Nico 263d86f942 Docstring 2015-11-08 20:46:58 +01:00
Nico c4e58669e9 Fix task cleanup when connection closed 2015-11-04 22:11:13 +01:00
Nico 8dab60a444 Add support for both Python 3.4 and 3.5 2015-11-01 21:27:33 +01:00
Nico 4dcf8eb477 Revert to 3.4 coroutine syntax 2015-11-01 15:58:20 +01:00
Nico daf53b83a5 Fix assert position 2015-10-31 14:28:41 +01:00
Nico 52e3160995 #HBMQTT-35
Refactor yield from -> await
2015-10-16 22:13:37 +02:00
Nico d1a5cdc2c1 fix result 2015-10-10 22:25:13 +02:00
Nico 3acec1d606 Add broker test class + fixes in both client and broker connection management 2015-10-07 22:42:04 +02:00
Nico 53b7168c1c Forgot to return return_code 2015-10-03 21:46:52 +02:00
Nico 44640a64f6 MQTTClient coroutine are now decorated with a wait connected event 2015-09-29 22:19:20 +02:00
Nico 20a43e5b25 Refactored client connection
allow auto-reconnect
2015-09-29 21:54:09 +02:00
Nico 8bafbeb0f2 remove unused 2015-09-27 21:17:12 +02:00