martinayotte wrote:It has nothing with a library.
You simply need to create a for loop that will skip the unneeded characters until you find "\r\n\r\n" substring.
It can be done with something like (untested):Code: Select allchar *ptr = buffer;
int len = strlen(buffer);
for (int = 0; i < len; i++) {
if (strncmp(ptr++, "\r\n\r\n", 4) == 0) break;
}
ptr += 3;
Serial.println(ptr);
Hmmmm, ok, i will test this.
Just another question, this i put between that 2 lines, correct?
uint32_t len = wifi.recv(buffer, sizeof(buffer), 10000);
Your code
if (len > 0) {
Serial.print("Received:[");
for(uint32_t i = 0; i < len; i++) {
Serial.print((char)buffer[i]);
}
Serial.print("]\r\n\r\n");
}