Hello,
I'm curious about something. When calling recv, and passing in a len that is greater than CC3000_RX_BUFFER_SIZE is it expected that a buffer overflow can occur?
I (seemingly mistakenly) assumed that multiple transactions between the CC3000 and the host would occur, but presumably it is never made aware of the length of the host buffers.
My overflow was so great that the checks in the spi driver didn't have a chance to execute :(
If this is the case then perhaps add a warning to any API function where this can occur?
Presumably the usable space is less than CC3000_RX_BUFFER_SIZE since there are additional headers transmitted. Is there a macro somewhere which is guaranteed to be a safe number of bytes to read? Something along the lines of (CC3000_RX_BUFFER_SIZE - 10) or would be able to suggest a magic number?
Similarly are you aware of such a magic number for sending?
Kind Regards,
Alan