Commit graph

14 commits

Author SHA1 Message Date
brentru
f3b0fc0f01 rename file 2018-09-05 13:33:08 -04:00
brentru
8fcc5a5698 group sub example -> pub AND sub example 2018-09-05 13:03:06 -04:00
brentru
7d0b95133d adding group subscriptions 2018-09-05 12:00:13 -04:00
brentrubell
d694464419
Feed sharing (#64)
Adding Feed Sharing into IO Python MQTT_Client
2018-08-01 17:21:11 -04:00
brentru
9ef016e93d patch unknown retain param error 2018-07-16 14:48:57 -04:00
Eric Keller
135845a90e
message callback unknown retain parameter
the message callback does not get any retain parameter. fixing the following trace...

```
Traceback (most recent call last):
  File "./pubsub.py", line 63, in <module>
    client.loop_blocking()
  File "/usr/local/lib/python3.5/dist-packages/Adafruit_IO/mqtt_client.py", line 152, in loop_blocking
    self._client.loop_forever()
  File "/usr/local/lib/python3.5/dist-packages/paho/mqtt/client.py", line 1481, in loop_forever
    rc = self.loop(timeout, max_packets)
  File "/usr/local/lib/python3.5/dist-packages/paho/mqtt/client.py", line 1003, in loop
    rc = self.loop_read(max_packets)
  File "/usr/local/lib/python3.5/dist-packages/paho/mqtt/client.py", line 1284, in loop_read
    rc = self._packet_read()
  File "/usr/local/lib/python3.5/dist-packages/paho/mqtt/client.py", line 1849, in _packet_read
    rc = self._packet_handle()
  File "/usr/local/lib/python3.5/dist-packages/paho/mqtt/client.py", line 2305, in _packet_handle
    return self._handle_publish()
  File "/usr/local/lib/python3.5/dist-packages/paho/mqtt/client.py", line 2500, in _handle_publish
    self._handle_on_message(message)
  File "/usr/local/lib/python3.5/dist-packages/paho/mqtt/client.py", line 2647, in _handle_on_message
    self.on_message(self, self._userdata, message)
  File "/usr/local/lib/python3.5/dist-packages/Adafruit_IO/mqtt_client.py", line 108, in _mqtt_message
    self.on_message(self, feed, payload)
TypeError: message() missing 1 required positional argument: 'retain'
```
2018-07-16 20:31:13 +02:00
brentrubell
66ea1f44eb
Merge branch 'api-v2' into v2-examples 2018-07-09 15:53:45 -04:00
brentrubell
721bdc3e49
rname to resolve merge error 2018-07-09 15:52:31 -04:00
brentrubell
810ee36382
Rename mqtt_client.py to mqtt_client_class.py
avoiding confusion between library src and example named the same thing.
2018-07-09 14:22:30 -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
brentru
95577646ee warning for api key sharing 2018-07-05 11:32:24 -04:00
brentru
c218f4708b Merge remote-tracking branch 'origin/master' into v2-examples 2018-07-02 16:28:50 -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
08614c0140 reorganize examples, and add a new data example 2017-06-27 14:23:43 -05:00