Re: ESP reliability and firmware update
Posted: Thu May 26, 2016 2:07 pm
If it is the read() that choke, maybe you can do chunk read using this code :
Code: Select all
int size;
while ((size = client.available()) > 0) {
uint8_t* msg = (uint8_t*)malloc(size);
size = client.read(msg, size);
Serial.write(msg, size);
free(msg);
}