How to set and get DNS-Server on new rpcWiFi lib for Wio Terminal?

Hi @ansonhe97 I had already tested yesterday before writing with the realteks firmware release v2.0.3 and the following source code but it still doesn’t work the DNS returns 0.0.0.0. I also wanted to point out that in the examples the WiFiClientStaticIP.ino file has errors and does not work. It includes the WiFi.h library as well as rpcWiFi.h, but other than that it doesn’t matter if I put the line “if (! WiFi.config (local_IP, gateway, subnet, primaryDNS, secondaryDNS))” before the line "WiFi.begin (ssid, password); ", as written in the example, the connection fails.
I also wanted to ask you why the release is never updated in the library.properties file of the libraries? In this way it is not possible to manage the projects correctly by entering with which release of the library it must be compiled.
Maybe I didn’t quite understand how the release works. Can you explain it to me?
Thanks
Moreover I have continued the tests today and there is still an incompatibility of the new WiFi library with writing to SD card. If I load the new library writing to SD fails

Click to see the code

/*
Example of connection using Static IP
by Evandro Luis Copercini
Public domain - 2017
*/
#include <rpcWiFi.h>
//#include <WiFi.h>

const char* ssid = “xxxxxxxxxx”;
const char* password = “xxxxxxxxxx”;
const char* host = “example.com”;
const char* url = “/index.html”;

IPAddress local_IP(192, 168, 0, 87);
IPAddress gateway(192, 168, 0, 1);
IPAddress subnet(255, 255, 255, 0);
IPAddress primaryDNS(8, 8, 8, 8); //optional
IPAddress secondaryDNS(8, 8, 4, 4); //optional

void setup()
{
Serial.begin(115200);
while (!Serial)
{
};

Serial.print("Connecting to ");
Serial.println(ssid);

WiFi.begin(ssid, password);

while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
if (!WiFi.config(local_IP, gateway, subnet, primaryDNS, secondaryDNS))
{
Serial.println(“STA Failed to configure”);
}

Serial.println("");
Serial.println(“WiFi connected!”);
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
Serial.print("ESP Mac Address: ");
Serial.println(WiFi.macAddress());
Serial.print("Subnet Mask: ");
Serial.println(WiFi.subnetMask());
Serial.print("Gateway IP: ");
Serial.println(WiFi.gatewayIP());
Serial.print("DNS: ");
Serial.println(WiFi.dnsIP());
}

void loop()
{
delay(5000);

Serial.print("connecting to ");
Serial.println(host);

// Use WiFiClient class to create TCP connections
WiFiClient client;
const int httpPort = 80;
if (!client.connect(host, httpPort)) {
Serial.println(“connection failed”);
return;
}

Serial.print("Requesting URL: ");
Serial.println(url);

// This will send the request to the server
client.print(String(“GET “) + url + " HTTP/1.1\r\n” +
“Host: " + host + “\r\n” +
“Connection: close\r\n\r\n”);
unsigned long timeout = millis();
while (client.available() == 0) {
if (millis() - timeout > 5000) {
Serial.println(”>>> Client Timeout !”);
client.stop();
return;
}
}

// Read all the lines of the reply from server and print them to Serial
while (client.available()) {
String line = client.readStringUntil(’\r’);
Serial.print(line);
}

Serial.println();
Serial.println(“closing connection”);
}