I’ve upgraded to the new rpcWifi library in the hopes it fixes some of the issues with the old atWifi version. The API looks much better, but the connection seems to only work intermittently:
Sometimes WiFi.begin() never connects to the AP - the call returns but WiFi.status() returns WL_DISCONNECTED.
Sometimes WFi.begin() connects to the AP and the Terminal obtains an IP, but TCP connections time out and the Terminal disconnects from the wifi a few seconds later.
Sometimes everything works correctly.
By power-cycling the device enough times I can usually get it to work, but it’s way too unreliable for real use. Has anyone else experienced this? Anyone found a solution, or ways to diagnose further?