Wio Terminal WiFi specified network not connecting

I am able to scan and see available networks using the first code example on the wiki. But using the code for connecting to a specified network I am not able to connect to my network. It’s stuck in this while loop:

 while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.println("Connecting to WiFi..");
}

Hi @reedlaw

Can you share the complete code of connecting please, as there are ways to connect wifi such as using WiFiMulti and wifi.connect. Thanks

I used the exact code from the wiki:

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

Okay this is fine then, what error does it say on the serial. Have you flashed the RTL8720 wireless core firmware following this: https://wiki.seeedstudio.com/Wio-Terminal-Network-Overview/

Just one question just for the record … You changed the “yourNetworkName” and “yourNetworkPassword” into the name and password of your local WiFi?

Regards, Kay

Yes. And I followed the wireless firmware flash instructions successfully as evidenced by the network scan working correctly. It shows my network ssid. I have ssid and password stored in a password manager and used copy/paste so there’s no typographical error. Is there any way to debug what’s going on while WiFi.status() != WL_CONNECTED?

I tried Serial.println(WiFi.status()); and the output is 255.

Hi @reedlaw

May be try a different network(let say your hotspot), one thing to point out is that it does not support 5G WiFi yet.

Hi @ansonhe97,
is 5GHz Wifi still not supported?
Is there a timetable for a fix, as this is part of the specifications printed on the WIO Terminal cardboard box.

5GHz is essential for me - so I moved from ESP32 boards to WIO terminal…

Kind regards,
Chris

5GHz, we will support it by the end of Q3 in 2020.WiFi software development is not that easy, please pay attention to our website. @Chris_WIO

Hi @Baozhu,
I totally agree that developing is not easy at all, but this should be done prior to launching a product.
I am not sure how to react in a polite way to this information as Wifi 5 GHz is clearly advertised on the product box etc.
I even payed a lot to get one quicker instead of buying from China warehouse.
What do you suggest? Return the product?

Kind regards,
Chris