Hi Sean. Thanks for your reply.
> Power cycle the wifi router as sometimes the router developed issues.
Tried that but it didn't help. The Pi has 2 Unifi access points within range on the same SSID. So even if one didn't work, it could choose the other (I guess it depends on how exactly the first one "didn't work").
> You might want to reload the image to verify that the update caused the problem.
This is indeed something I could try. Will do soon. I guess I have to be quick before it runs the update again. I could give it the wrong default gateway IP to stop it accessing the internet for testing... (not in "production" though as I need it to get the current internet time as it also displays time and date).
> Here is something on GitHub to enable and disable the adapter: Using C# to Disable and Enable a Network Adapter
Thanks for that. I manually tried the netsh commands that this code runs but that doesn't work. It shows this error:
netsh interface>set interface Wi-Fi disable
The supplied kernel information version is invalid.
netsh interface>
netsh interface>set interface Wi-Fi enable
The supplied kernel information version is invalid.
netsh interface>
I assume "Wi-Fi" is the interface name according to this:
netsh interface>show interface
Admin State State Type Interface Name
-------------------------------------------------------------------------
Enabled Connected Dedicated Ethernet
Enabled Disconnected Dedicated Wi-Fi
netsh interface>
When the issue happened and I open the Device Portal (point the browser to RPi IP:8080) the drop-down list of WiFi adapters (Connectivity -> Network) is empty. That looks to me like the adapter is gone. (so not an issue with the access point)
> The other solution is to use devcon.exe. You might want to try this before writing the code.
I've had a look at this but this looks over my head.
I think the best solution for me here is to use Raspian Linux and write the app again. I had chosen Win10 IoT 3 years ago because I have zero experience coding on Linux. I guess now is the time for that to change... ;)