Flavio Fernandes
ce3347249b
[mqtt_client]: Fix docstring in subscribe_group
...
Fix param in the doc string of subscribe_group to use proper name.
Trivial fix
2020-08-27 16:41:58 -04:00
brentru
e4916b6e1d
fix sub callback, qos
2019-12-19 11:50:43 -05:00
brentru
623ea17b4f
fix on_message topic parsing, time example, bump minor version
2019-03-08 11:13:14 -05:00
brentru
c3cdd7b349
add mqtt get to client, bump version
2019-02-12 17:45:11 -05:00
brentru
d1b1ac8bc3
add subscribe_randomizer and mqtt example
2019-01-15 15:20:30 -05:00
brentru
a85047b8b0
correct parsing of default topic
2019-01-08 16:31:53 -05:00
brentru
64c42de144
update example to show 1, 2, 5 day forecasts
2019-01-08 15:01:11 -05:00
brentru
7ada763304
finish parser, tested
2019-01-08 14:52:02 -05:00
brentru
aca9f67f5a
redo parser
2019-01-08 14:48:47 -05:00
brentru
e0904c66d7
add forecast topic to mqtt message parser
2019-01-08 14:37:47 -05:00
brentru
6752497e58
enforce strict forecast types, raise error
2019-01-08 13:36:52 -05:00
brentru
f00bdcd066
adding MQTT API integration
2019-01-08 13:15:31 -05:00
brentru
54f8790ed4
consolidate group_publish into publish method
2018-09-05 12:57:15 -04:00
brentru
3d43570cec
adding group publishing, unsubscribe support for groups
2018-09-05 12:39:46 -04:00
brentru
7d0b95133d
adding group subscriptions
2018-09-05 12:00:13 -04:00
brentrubell
41219f731f
Add rgb led example ( #67 )
...
* Adding helper methods (toRed, toGreen, toBlue) for hex-encoded color feeds
* Adding example for AIO Basics: Color
2018-08-08 17:38:29 -04:00
brentru
b344704d7c
add threaded loop stop
2018-08-02 13:11:45 -04:00
brentrubell
d694464419
Feed sharing ( #64 )
...
Adding Feed Sharing into IO Python MQTT_Client
2018-08-01 17:21:11 -04:00
brentru
b5776e1f9a
strict TLS/SLL check, unittest for secure/insecure mqtt client connections
2018-07-10 10:41:11 -04:00
brentrubell
552b40793f
MQTT/REST Time Helpers ( #54 )
...
Add ability to subscribe to time topics via MQTT Client or REST/API Client. Add examples for each.
2018-07-06 15:47:59 -04:00
brentrubell
e54e04eaa2
PR: Secure MQTT Implementation ( #45 )
...
* Add Secure MQTT Implementation
* fix example to auto-secure
2018-07-02 14:30:07 -04:00
Justin Cooper
f9f659b7e8
drop retain in on_message
2017-06-29 11:48:25 -05:00
Justin Cooper
75a84c56c2
Merge pull request #22 from mikeadamz/retain_flag
...
Pass 'retain' flag from paho MQTT to on_message callback
2017-06-26 10:20:55 -05:00
Justin Cooper
3d79f01d1c
Merge pull request #29 from radudragusin/patch-1
...
Allow user to override keepalive on connect
2017-06-26 10:18:30 -05:00
radudragusin
15b8789d6c
Allow user to override keepalive on connect
...
The `keepalive` is always set to `KEEP_ALIVE_SEC` and cannot be overridden by the user. This fix uses the user-provided `keepalive` from `kwargs` and defaults to `KEEP_ALIVE_SEC` if there is None.
This fixes #28
2016-10-02 13:27:07 +02:00
radudragusin
1a7fba5f96
Fix KEEP_ALIVE_SEC to be 60 seconds
...
Fix KEEP_ALIVE_SEC to be 60 seconds instead of the current value of 3600 which is in fact an hour.
This fixes #25 which is an issue because the broker disconnects after 300 seconds with no ping.
2016-10-02 12:56:08 +02:00
Tony DiCola
508bf8a934
Fix #11 by ensuring disconnect handler always called on disconnect (on unexpected disconnect the rc is logged as a debug message).
2016-03-29 00:34:41 -07:00
Mike Adams
24ae5bb3cc
Pass 'retain' flag from paho MQTT to on_message callback
2016-03-16 12:51:53 -07:00
Todd Treece
6935aa94d4
fixes subscription topic parsing
2015-06-03 17:00:13 -04:00
Tony DiCola
8fd72c2482
Update to use new MQTT path with username.
2015-06-03 13:30:36 -07:00
Tony DiCola
9900d508f5
Major update:
...
- Refactored REST client to use requests library for Python 3 compatibility.
- Added docstrings to all public methods & classes.
- Fleshed out CRUD APIs for data, feed, group.
- Wrote full suite of integration tests to verify changes.
- Updated setup.py to bump version to 0.9 & depend on requests and paho-mqtt modules.
- Updated and tested code to work with both Python 2 and 3.
- Broke out errors into separate file, and added explicit data model classes.
- General cleanup and preparation for public release.
2015-02-01 12:22:03 -08:00
Tony DiCola
f9bc621ed9
Update MQTT client to user /data instead of /stream path.
2015-01-14 10:37:16 -08:00
Tony DiCola
3322d93590
Oops missed a comment update.
2015-01-13 23:47:46 -08:00
Tony DiCola
9b75cd28c7
Update comments to be consistent and correct.
2015-01-13 23:46:41 -08:00
Tony DiCola
2c4bb7fb20
Add MQTT client and update tests.
2015-01-13 23:37:00 -08:00