Uno wifi connection fails without any error message

Hi,

I want to use my arduino uno wifi to connect to my local wifi network. When I run my code, I get trying to connect but no error what so ever. Can anyone help my how I can futher debug my problem? All suggestions are welcome!

#include <Wire.h>
#include <ArduinoWiFi.h>
#include <SPI.h>
#include <WiFi.h>


char ssid[] = "xxxxx"; //  your network SSID (name)
char pass[] = "xxxxx";    // your network password (use for WPA, or use as key for WEP)
int status = WL_IDLE_STATUS;     // the Wifi radio's status

void setup()
{
  Serial.begin(9600);
  Serial.println("setup started.............. ");
  printWifiStatus();
  delay(10);
    // check for the presence of the shield
  if (WiFi.status() != WL_NO_SHIELD) {
    Serial.println("WiFi shield not present");
    // don't continue
    while (true);
  }
    // print the SSID of the network you're attached to
  Serial.print("SSID: ");
  Serial.println(WiFi.SSID());
  
  // attempt to connect to WiFi network
  while ( status != WL_CONNECTED) {
    Serial.print("Attempting to connect to WPA SSID: ");
    Serial.println(ssid);
    // Connect to WPA/WPA2 network
    status = WiFi.begin(ssid, pass);
    delay(5000);
  }



  Serial.println("setup completed............ ");
}
void loop() {

  Serial.println("running loop  ");

  delay(3000);
}
void printWifiStatus()
{
  // print the SSID of the network you're attached to
  Serial.print("SSID: ");
  Serial.println(WiFi.SSID());

  // print your WiFi shield's IP address
  IPAddress ip = WiFi.localIP();
  Serial.print("IP Address: ");
  Serial.println(ip);

  // print the received signal strength
  long rssi = WiFi.RSSI();
  Serial.print("Signal strength (RSSI):");
  Serial.print(rssi);
  Serial.println(" dBm");
}

with factory firmware you can use only this library.

#include <UnoWiFiDevEd.h>

the WiFi library is for the Arduino WiFi Shield