From 9850a575bd836f597892c32a4e25652f8ae7346c Mon Sep 17 00:00:00 2001 From: brentru Date: Tue, 23 Jul 2019 16:46:38 -0400 Subject: [PATCH 1/2] update IO circuitpython method names --- adafruit_pyportal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_pyportal.py b/adafruit_pyportal.py index 0c0614a..6da3108 100644 --- a/adafruit_pyportal.py +++ b/adafruit_pyportal.py @@ -69,7 +69,7 @@ import rtc import supervisor -from adafruit_io.adafruit_io import RESTClient, AdafruitIO_RequestError +from adafruit_io.adafruit_io import IO_HTTP, AdafruitIO_RequestError try: from secrets import secrets From 32fd0b7b5457d0c7cc94f69bcff32b6b4e56fac5 Mon Sep 17 00:00:00 2001 From: brentru Date: Tue, 23 Jul 2019 17:25:06 -0400 Subject: [PATCH 2/2] replace restclient --- adafruit_pyportal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_pyportal.py b/adafruit_pyportal.py index 6da3108..b5f976f 100644 --- a/adafruit_pyportal.py +++ b/adafruit_pyportal.py @@ -691,7 +691,7 @@ def push_to_io(self, feed_key, data): raise KeyError("Adafruit IO secrets are kept in secrets.py, please add them there!\n\n") wifi = adafruit_esp32spi_wifimanager.ESPSPI_WiFiManager(self._esp, secrets, None) - io_client = RESTClient(aio_username, aio_key, wifi) + io_client = IO_HTTP(aio_username, aio_key, wifi) while True: try: