Remove binascii, json, requests calls that occur within the pyportal top level module

This commit is contained in:
brentru 2020-12-23 17:18:50 -05:00
parent 48b186b497
commit b3121cb838

View file

@ -14,11 +14,8 @@ All text above must be included in any redistribution.
#pylint:disable=invalid-name
import time
import adafruit_binascii as binascii
import json
import board
from adafruit_pyportal import PyPortal
import adafruit_requests as requests
try:
from secrets import secrets
@ -57,4 +54,4 @@ pyportal.set_headers({'Authorization': 'Bearer ' + bearer_token})
while True:
pyportal.fetch()
time.sleep(3600) # check every hour
time.sleep(3600) # check every hour