Messy code in reading msg from server

Hi all,

We are currently trying to make a project with http. The board we used is Arduino UNO WiFi REV 2 and MKR WIFI 1010. And we have received the msg sent from the server as following.

As indicated in the red triangular, what could have happened there? Is that some problem on the memory storage?

Following is the code for loop section.

void loop() {

// if there are incoming bytes available
// from the server, read them and print them:
while (client.available()) {

char c = client.read();
Serial.print(c);
}

while(!timeClient.update()) {
timeClient.forceUpdate();
}
}

BRs,
YIL

Whatever is printing "Please upgrade the firmware" may have a point.

Thanks! But after I fix it, it still generated the Mojibake(wrong char). I have checked on the internet and do you think that has something to do with the baud rate on the serial monitor?

That could be. Have you checked that the baud rate you set in your sketch matches the baud rate you set in your Serial Monitor?

Yes, I have already checked it and it still happened.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.