Wio cannot connect to wifi

Dear All,
I am trying to connect my Wio to my local network, but it does not work.
I used a simple example:

#include “rpcWiFi.h”
const char* ssid = “XXXXX”;
const char* password = “YYYY”;
void setup() {
Serial.begin(115200);
while(!Serial); // Wait for Serial to be ready
Serial.println(“trying”);
// Set WiFi to station mode and disconnect from an AP if it was previously >connected
WiFi.mode(WIFI_STA);
Serial.println(“trying2”);
WiFi.disconnect();
Serial.println(“Connecting to WiFi…”);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.println(“Connecting to WiFi…”);
WiFi.begin(ssid, password);
}
Serial.println(“Connected to the WiFi network”);
Serial.print("IP Address: ");
Serial.println (WiFi.localIP()); // prints out the device’s IP address
}
void loop() {
}

It stops before the command WiFi.mode(WIFI_STA).
I updated the firmware of my wio just this morning, but no changes.
I also tried another code example for UDP connection, but it does not work.
Any idea?

Thank you very much and best regards