From d9be6bcbba86ccc27330d5a7be17dc397a25300e Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Fri, 20 Nov 2020 11:37:24 -0800 Subject: [PATCH] Updated to use latest Adafruit IO --- adafruit_magtag/network.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/adafruit_magtag/network.py b/adafruit_magtag/network.py index ba98c4d..dd6085a 100755 --- a/adafruit_magtag/network.py +++ b/adafruit_magtag/network.py @@ -155,8 +155,6 @@ def add_json_transform(self, json_transform): def get_local_time(self, location=None): # pylint: disable=line-too-long """ - NOTE: Do not use yet. This is currently not working. - Fetch and "set" the local time of this microcontroller to the local time at the location, using an internet time API. :param str location: Your city and country, e.g. ``"New York, US"``. @@ -319,13 +317,11 @@ def _get_io_client(self): "Adafruit IO secrets are kept in secrets.py, please add them there!\n\n" ) from KeyError - return IO_HTTP(aio_username, aio_key, self._wifi.manager(secrets)) + return IO_HTTP(aio_username, aio_key, self._wifi.requests) def push_to_io(self, feed_key, data): """Push data to an adafruit.io feed - NOTE: Do not use yet. This is currently not working. - :param str feed_key: Name of feed key to push data to. :param data: data to send to feed @@ -358,8 +354,6 @@ def push_to_io(self, feed_key, data): def get_io_feed(self, feed_key, detailed=False): """Return the Adafruit IO Feed that matches the feed key - NOTE: Do not use yet. This is currently not working. - :param str feed_key: Name of feed key to match. :param bool detailed: Whether to return additional detailed information @@ -377,8 +371,6 @@ def get_io_feed(self, feed_key, detailed=False): def get_io_group(self, group_key): """Return the Adafruit IO Group that matches the group key - NOTE: Do not use yet. This is currently not working. - :param str group_key: Name of group key to match. """ @@ -395,8 +387,6 @@ def get_io_group(self, group_key): def get_io_data(self, feed_key): """Return all values from Adafruit IO Feed Data that matches the feed key - NOTE: Do not use yet. This is currently not working. - :param str feed_key: Name of feed key to receive data from. """