Dear Sir or Madam,
I’m very new to WizFi system, so let me apologise if I’m asking a stupid question…
I’ve just started using WizFi360-EVB-Pico to get data from a sensor (which sends about 40 bytes of measurement data via WiFi/TCP every 5 seconds) in SoftAP mode, based on WebServerAP example.
For the first packet after reset, it works.
Though, from second packet, WiFiClient::read gives AT command, not received data, like:
+IPD,0,40,192.168.80.88,55018:0, 0, 7
Also, WiFiClient::available does not seem to support more than 2 packets. it gives
0 (before 1st packet’s arrival)
40 (1st packet)
40
40 (even after 2nd packet)
40 (3rd packet, …)
Is it the expected behavior? How can I get the ‘real’ Rx data…
What I’m doing is as follows:
while (client.connected()) { // loop while the client's connected
int bytes_avail = client.available();
Serial.print(bytes_avail);
Serial.print(" ");
if (bytes_avail > 0) {
buf = (uint8_t *) malloc(bytes_avail);
client.read(buf, bytes_avail);
for (int i=0; i<bytes_avail; i++) {
Serial.print((char)buf[i]);
}
Serial.println("");
free(buf);
}
delay(1000);
}
My WizFi360-EVB-Pico is running firmware 1.1.1.7.
I also thought of updating to 1.1.1.9, though, with only USB cable, I could not find any way to do that.
- Tera term Esc key while reset does not turn the device into boot mode
- WizFi upgrade tool give “not connected” error after pressing reset button
I also appreciate if anyone lets me know how to update in this situation.
Best regards,