Hi
here is the interesting part of my test sketch. ssid and pass are declared in "arduino_secrets.h"
void setup() {
delay (1000);
WiFi.disconnect();
Serial.begin(115200);
Serial.println( WiFi.firmwareVersion());
int status = WiFi.begin(ssid, pass);
while (status != WL_CONNECTED)
{ delay(1000);
Serial.print(".");}
Serial.println("connexion OK");
....
Once in two that i open IDE console, UNO WiFi Rev2 gets connection in a few seconds and once in two, any connection, never. It is the same thing when i connect UNO WiFi Rev2 to my PC by cable and it is the same thing when i use a 5 volts block to power UNO WiFi Rev2 by USB cable. Once, it is ok, the next time is KO.
Dan