Skip to content

POST readBytes bytes limit #116

Open
@PabloASua

Description

@PabloASua

Hi there!
I was trying to send to my ESP32 some data using the POST method.
Everything was ok until my data passed over 512 bytes.
When my data gets 513 byte or more, the readByte function seems to overflow and overwrite the buffer regardless the buffer size.

My code:

byte buffer[1024];
size_t readLength = 0;

while(!(req->requestComplete())) {
readLength = req->readBytes(buffer, 1024);
}
Serial.println(readLength);

When data is less or equal than 512 bytes readLenght match with the amount of byte sended, but over 513 bytes readLenght is equal to the the diference between 512 bytes and the sended bytes.

¿Is there any limit to change somewhere?

Regards!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions