K
@daniel, I got it working using the code example that @DarkHawk posted here.
I only added a line wlan.ifconfig(config=('192.168.2.5', '255.255.255.0', '192.168.2.1', '8.8.8.8'))
before nets = plan.scan().
When I compare the few lines of code I cannot really see the difference. I'm not sure, but the only logical explanation would be a typo in the ssid or password. Of course I confirmed them several times...
Only issue left is the DNS but that you know about already.