Adafruit_FONA icon indicating copy to clipboard operation
Adafruit_FONA copied to clipboard

TCPread length of data read can be bigger than 256 ?

Open bilics opened this issue 8 years ago • 2 comments

Hi,

The TCPread call is defined as:

uint16_t Adafruit_FONA::TCPread(uint8_t *buff, uint8_t len)

what happens when you have more than 256 bytes to read ? Or that never happens ?

Another thing is that

uint16_t Adafruit_FONA::TCPavailable(void)

is able to return a length greater than 256 to read from... should we read 256 bytes at a time ?

Thanks!

bilics avatar Mar 01 '16 14:03 bilics