Skip to content

updates since my previous PR #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 33 commits into from
Aug 31, 2019
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
7669478
Added IO_push
jasonlshelton Apr 29, 2019
74b4c5c
fixed pylint issues
jasonlshelton Apr 29, 2019
0464b87
more pylint corrections
jasonlshelton Apr 29, 2019
989d77c
updated docs config
jasonlshelton Apr 29, 2019
77cd194
Merge pull request #1 from jasonlshelton/Add_Push_IO
jasonlshelton May 1, 2019
a748fb0
Added exception catching to network related function calls to account…
jasonlshelton May 1, 2019
569adef
Improved error handling allowing pyportal to retry connections that f…
jasonlshelton May 3, 2019
eb23859
Style changes as requested
jasonlshelton May 6, 2019
eebcd41
Merge pull request #2 from jasonlshelton/Add_Push_IO
jasonlshelton May 31, 2019
d2ab7fd
Style changes as requested
jasonlshelton Jun 4, 2019
ba20f85
Merge pull request #3 from jasonlshelton/Add_Push_IO
jasonlshelton Jun 4, 2019
b1718ca
Merge pull request #36 from jasonlshelton/master
brentru Jun 6, 2019
ace8e0d
Update README.rst
ladyada Jul 9, 2019
0879104
Add set_headers
dastels Jul 15, 2019
808c5e2
Merge pull request #43 from dastels/master
dastels Jul 15, 2019
9850a57
update IO circuitpython method names
Jul 23, 2019
32fd0b7
replace restclient
Jul 23, 2019
b539f43
Merge pull request #44 from brentru/patch-restclient-method
brentru Jul 23, 2019
6b6bbc8
update for compat with pybadge/pygamer with cursor instead of touchsc…
Jul 24, 2019
e4aac2f
fix errors on pr per @ladyada review
Jul 24, 2019
b50095a
travis
Jul 24, 2019
87a67f4
fix docs
Jul 24, 2019
133024f
Merge pull request #45 from brentru/pygamer-pybadge-compat
brentru Jul 24, 2019
c625dba
Merge pull request #42 from adafruit/ladyada-patch-1
ladyada Jul 28, 2019
dfd1cb4
choose between touchscreen and cursor manager
jerryneedell Jul 28, 2019
3d58880
pylint - move imports
jerryneedell Jul 28, 2019
30b1a53
pylint - gotta love pylint
jerryneedell Jul 28, 2019
63bcbc1
pylint - grr -- it passed on my pylint
jerryneedell Jul 28, 2019
e1e4718
fix tft-in-use-error
Jul 29, 2019
65b1e9f
Merge pull request #47 from jerryneedell/jerryn_fixcursor
brentru Jul 29, 2019
cf6c110
Merge pull request #49 from brentru/fix-tft-in-use
brentru Jul 29, 2019
23b2c76
update to requests
Jul 29, 2019
1416bc0
Merge pull request #50 from brentru/switch-requests
brentru Jul 29, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added exception catching to network related function calls to account…
… for occasional timeout from the esp chip
  • Loading branch information
jasonlshelton committed May 1, 2019
commit a748fb036aaff6ac8fe5e24e48d29ab3a872dec5
7 changes: 6 additions & 1 deletion adafruit_pyportal.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,13 @@ def io_push(self, feed, data):
except AdafruitIO_RequestError:
# If no feed exists, create one
feed_id = io_connect.create_new_feed(feed)
except RuntimeError as exception:
print("Some error occured, retrying! -", exception)

io_connect.send_data(feed_id['key'], data)
try:
io_connect.send_data(feed_id['key'], data)
except RuntimeError as exception:
print("Some error occured, retrying! -", exception)

def fetch(self, refresh_url=None):
"""Fetch data from the url we initialized with, perfom any parsing,
Expand Down