Skip to content

Commit e53e1bb

Browse files
authored
Merge pull request #17 from makermelissa/main
Updated to use latest Adafruit IO
2 parents b3fd0ef + f5a4455 commit e53e1bb

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

adafruit_magtag/network.py

+1-11
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,6 @@ def add_json_transform(self, json_transform):
155155
def get_local_time(self, location=None):
156156
# pylint: disable=line-too-long
157157
"""
158-
NOTE: Do not use yet. This is currently not working.
159-
160158
Fetch and "set" the local time of this microcontroller to the local time at the location, using an internet time API.
161159
162160
:param str location: Your city and country, e.g. ``"New York, US"``.
@@ -319,13 +317,11 @@ def _get_io_client(self):
319317
"Adafruit IO secrets are kept in secrets.py, please add them there!\n\n"
320318
) from KeyError
321319

322-
return IO_HTTP(aio_username, aio_key, self._wifi.manager(secrets))
320+
return IO_HTTP(aio_username, aio_key, self._wifi.requests)
323321

324322
def push_to_io(self, feed_key, data):
325323
"""Push data to an adafruit.io feed
326324
327-
NOTE: Do not use yet. This is currently not working.
328-
329325
:param str feed_key: Name of feed key to push data to.
330326
:param data: data to send to feed
331327
@@ -358,8 +354,6 @@ def push_to_io(self, feed_key, data):
358354
def get_io_feed(self, feed_key, detailed=False):
359355
"""Return the Adafruit IO Feed that matches the feed key
360356
361-
NOTE: Do not use yet. This is currently not working.
362-
363357
:param str feed_key: Name of feed key to match.
364358
:param bool detailed: Whether to return additional detailed information
365359
@@ -377,8 +371,6 @@ def get_io_feed(self, feed_key, detailed=False):
377371
def get_io_group(self, group_key):
378372
"""Return the Adafruit IO Group that matches the group key
379373
380-
NOTE: Do not use yet. This is currently not working.
381-
382374
:param str group_key: Name of group key to match.
383375
384376
"""
@@ -395,8 +387,6 @@ def get_io_group(self, group_key):
395387
def get_io_data(self, feed_key):
396388
"""Return all values from Adafruit IO Feed Data that matches the feed key
397389
398-
NOTE: Do not use yet. This is currently not working.
399-
400390
:param str feed_key: Name of feed key to receive data from.
401391
402392
"""

0 commit comments

Comments
 (0)