Commit graph

109 commits

Author SHA1 Message Date
brentru
42df192722 adding RTD documentation to all methods for client lib 2018-12-26 12:34:36 -05:00
brentru
9c5399ca4a bump version for pypi release 2018-09-05 13:14:24 -04: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
brentru
82f66ac9ab remove legacy methods from client 2018-08-25 10:15:21 -04:00
brentru
ab3b978bb7 bump version for release 2018-08-24 13:35:24 -04:00
brentru
6af24a1b9a adding fix for pypi 2018-08-24 13:31:03 -04:00
brentru
2969865610 Adding example for AIO Basics: Servo 2018-08-09 11:40: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
brentrubell
bd268080ef Update .travis.yml
Bump version
2018-08-02 13:13:48 -04:00
brentru
b344704d7c add threaded loop stop 2018-08-02 13:11:45 -04:00
brentrubell
b5bf7cdff1
bump bump version 2018-08-01 17:24:22 -04:00
brentrubell
d694464419
Feed sharing (#64)
Adding Feed Sharing into IO Python MQTT_Client
2018-08-01 17:21:11 -04:00
brentrubell
80b455a0eb
TypeError Handling (#61)
Fix TypeError on 3.5.x (RasPi, Stretch)
2018-07-17 10:00:54 -04:00
brentru
dccce92324 ref. mqtterror class in init 2018-07-11 11:35:41 -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
050523e25f
break out errors into explicit types (#44)
* added strict error checking for params in errors.py
2018-07-02 15:10:44 -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
brentrubell
418141a00f
Support for Lat/Lon/Elevation Data (#48)
* modified model for location feeds
* added send_location_data method to API client wrapper
* fix send_location_data arg order, update example
2018-07-02 13:10:14 -04:00
brentru
f056b834bc fixing ModuleNotFoundError for _version 2018-06-26 16:44:42 -04:00
brentru
865bf5f497 change feed model to explicitly set values 2018-06-26 16:04:00 -04:00
brentru
4dbef23883 deprecating stream in v2 client, handled by API 2018-06-26 14:03:44 -04:00
brentru
204889ec24 created a single-source for package vers. 2018-06-26 12:34:11 -04:00
Justin Cooper
f9f659b7e8 drop retain in on_message 2017-06-29 11:48:25 -05:00
Justin Cooper
9de0fe99f1 pass error details if available in RequestError 2017-06-29 11:12:44 -05:00
Justin Cooper
c21867eb75 rename send to send_data and craete alias to send, rework readme 2017-06-27 15:39:56 -05:00
Justin Cooper
a5946f6ad2 update client calls with username and add send_batch_data 2017-06-27 15:20:15 -05:00
Justin Cooper
e63fa511bc update wording of send 2017-06-27 13:56:02 -05:00
Justin Cooper
aa4e806f13 wrap feed parameter 2017-06-27 10:59:20 -05:00
Justin Cooper
1e2d7f1dd0 update feed fields for api v2 and drop stream from feed 2017-06-27 10:58:12 -05:00
Justin Cooper
9111e3da5d initial api v2 support as default 2017-06-26 15:15:46 -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
Justin Cooper
ac462142f8 Merge pull request #27 from MonoHelixLabs/radudragusin-fix-keepalive
Fix KEEP_ALIVE_SEC to be 60 seconds
2017-06-26 10:17:40 -05:00
Torben
9deb90340b Updated client to use a version property (defaults to API v1) so it works with legacy API 2017-05-26 00:59:50 +00: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
921a90e2d8 Add python platform & version, system platform to user agent. 2016-06-20 15:24:45 -07:00
Adam Bachman
705f611925 set custom User-Agent for outgoing HTTP requests 2016-06-15 20:08:48 -04: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
59fdef442d Add client.append function for easily appending data to a feed. 2015-05-25 16:47:12 -07:00
Justin Cooper
a1802ae447 Fix typo with self 2015-02-17 11:49:40 -06: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
196f71dc51 Document, refactor slightly, and add tests to REST API client. 2015-01-27 21:52:25 -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
Tony DiCola
2af9a0d65d Add custom Adafruit IO error types and raise them when requests fail. 2014-12-08 15:23:56 -08:00
Tony DiCola
395e3f6891 Remove old commented out base URL. 2014-12-08 13:54:40 -08:00
Tony DiCola
0498780514 Change URL from testing site to main site. 2014-12-08 13:52:44 -08:00
Justin Cooper
f7ad55fc81 update to aio key and use io.ladyada.org 2014-07-16 13:58:00 -05:00
Justin Cooper
74ff2c0f98 add group functionality 2014-07-07 09:42:27 -05:00
Justin Cooper
118cd59bb6 case sensitive dir 2014-05-27 11:27:13 -05:00