Who can help? My Wipy connects to a TP-Link router at home without any problems. When I'm with my colleague, he has a Fritzbox, the Wipy connects once, sends data and does not connect when restarting. Does anyone know what this can be? Here is a program excerpt from the connection.
if (Verbindung) == 1: from network import WLAN wlan = WLAN(mode=WLAN.STA) nets = wlan.scan() for net in nets: if net.ssid == settings.Router: print('Netzwerk gefunden!') if not wlan.isconnected(): wlan.connect(net.ssid, auth=(WLAN.WPA2, settings.Pass), timeout=5000) while not wlan.isconnected(): machine.idle() # save power while waiting print('WLAN-Verbindung erfolgreich!')```
Thanks for the info. Always rescued it via software.
Will test it with machine Deepsleep
robert-hh last edited by robert-hh
@wolli01 At least I can confirm the same behavior. It connects to a TP-Link AP without problems, but with a Fritzbox router it behaves different. After power on, it connects fast. Using reset with the reset button, it connects only every second time. That is reproducible. So it looks like some initial state is kind of toggled after reset. Using machine.deepsleep() it reconnects every time.
Firmware 1.20.0.rc7.2. Test close to the router.
A bad receiving condition complicate the situation.
The second reset must not follow the first one immediately. I have to wait until after the first flash of the heartbeat LED.
I had that first.
wlan.connect(net.ssid, auth=(net.sec, settings.pass), timeout=5000)
so it runs on the Fritzbox only once and then it doesn't connect anymore.
Have it then with
wlan.connect(net.ssid, auth=(WLAN.WPA2, settings.Pass), timeout=5000)
and the first.
So far I don't know if I can do it yet, the colleague with the FritzBox hasn't contacted me yet.