Wio Terminal WiFi errors

Hello, for me it wasnt even showing the starting when trying your code, but I tried something and it worked…

What I think is that the while (!Serial); // Wait to open Serial Monitor is not working well… and it starts directly after uploading, the reason why it’s so fast it doesn’t even show… and since it is in void setup, it only runs once.

So I tried 2 things:

The first, was to put the rest of the code inside the coid loop:

#include “rpcWiFi.h”

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

void loop() {
while(!Serial); // Wait to open Serial Monitor
Serial.println(“Starting…”);
Serial.printf(“RTL8720 Firmware Version: %s”, rpc_system_version());
delay(5000);
}

The other thing that worked for me, was to add a delay after the while(!Serial) instruction… which gives you 5 seconds to open the serial monitor…

#include “rpcWiFi.h”

void setup() {
Serial.begin(115200);
while(!Serial); // Wait to open Serial Monitor
delay(5000);
Serial.println(“Starting…”);
Serial.printf(“RTL8720 Firmware Version: %s”, rpc_system_version());
Serial.println();
}

void loop() {
}

I hope this works for you