Part Number: CC3135MOD
We are trying to send a chunk of data of size 4096 via tcp socket to the simple link device, on the receiver side it is observed this is received in two receive calls, the first one is of 1460 length and the remaining bytes in second call, data is incorrectly received in 2nd packet, if we receive data in 1024 byte packets, it works fine. the receiving code is as follows:
What is the correct way of receiving large number of bytes?