Hi
Has anyone got a working sample that catches errors with AdafruitIOError ?
I've tried a couple of things with no joy.
Thanks
Working sample with exception handling
Moderators: adafruit_support_bill, adafruit
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
- lachlank
- Posts: 2
- Joined: Mon Jun 24, 2013 12:02 am
Re: Working sample with exception handling
Alright, got this working...
from Adafruit_IO import *
<other stuff goes here>
except errors.RequestError as e:
print e
from Adafruit_IO import *
<other stuff goes here>
except errors.RequestError as e:
print e
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.