I understand that you are currently experiencing difficulties connecting to the WiFi boards.
Please note that the Arduino Uno WiFi Rev2 board is not supported. If you are looking to work with WiFi-related tasks, I recommend starting with the R2017b MKR1000 board, as it is supported.
To determine which boards are supported and choose the one that best suits your requirements, I suggest referring to the following article:
I hope these suggestions help you resolve the issue you are facing.