Wipy 2.0 machine.reset() failing
-
I have a wipy 2.0 and the expansion board. I''m powering it with a 5V usb to the expansion board and nothing else connected. I'm logging in over my home router and able to access the device with no problems. My issue is that when I issue a machine.reset() command the wipy locks up and the heartbeat led turns blue and is on continuously. I can't reconnect over wifi and the only way I've found to recover is power cycle or hit the on board reset switch. I've tried reflashing the firmware and I've removed everything except an empty main.py and my boot.py file which contains the minimum code to boot the device and connect to wifi. Does anyone have any ideas as to what could be causing this?
boot.py in case it's helpful:
from network import WLAN
import machinewlan = WLAN()
if machine.reset_cause() != machine.SOFT_RESET:
wlan.init(mode=WLAN.STA)
wlan.ifconfig(config=('192.168.1.105', '255.255.255.0', '192.168.1.1', '8.8.8.8'))if not wlan.isconnected():
wlan.connect('MyWifi', auth=(WLAN.WPA2, 'MyWifiPassword'), timeout=5000)while not wlan.isconnected():
machine.idle()
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login