0

BUG in pyportal/wifi.mpy
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

BUG in pyportal/wifi.mpy

by aq7 on Sun Apr 11, 2021 3:09 am

Using cp 6.2.0 with library released 2021/04/10, example code - display random quote on pyportal

Code works with lib/adafruit_pyportal/wifi.mpy dated 2021/04/07 & prior
Code fails with lib/adafruit_pyportal/wifi.mpy dated 2021/04/08 & later

Traceback (most recent call last):
File "code.py", line 9, in <module>
File "adafruit_pyportal/__init__.py", line 152, in __init__
File "adafruit_pyportal/network.py", line 90, in __init__
File "adafruit_pyportal/wifi.py", line 77, in __init__
AttributeError: 'NoneType' object has no attribute 'is_connected'

aq7
 
Posts: 6
Joined: Tue Dec 31, 2019 5:52 pm

Re: BUG in pyportal/wifi.mpy

by neradoc on Sun Apr 11, 2021 3:55 am

Thanks for reporting, it should be fixed soon.

neradoc
 
Posts: 11
Joined: Wed Apr 27, 2016 2:38 pm

Re: BUG in pyportal/wifi.mpy

by aq7 on Sun Apr 11, 2021 9:58 pm

Thanks for the quick fix! self.esp to the rescue.

Replaced wifi.mpy with new wifi.py - code works!
Will re-test after migration into production library.

Viva la Neradoc!

aq7
 
Posts: 6
Joined: Tue Dec 31, 2019 5:52 pm

Please be positive and constructive with your questions and comments.