cancel
Showing results for 
Search instead for 
Did you mean: 

AzureRTOS, how to transmit TCP large data buffers?

Asantos
Senior

Hi,

I did the function below to transmit TCP data: But I only can transmit up to 4K bytes using this function. If len is bigger than 4K bytes, nx_tcp_socket_send fails.

void TCP_Send(void *buf, uint32_t len)

{

 UINT ret;

 NX_PACKET *send_packet;

nx_packet_allocate(&AppPool,&send_packet,NX_TCP_PACKET,NX_WAIT_FOREVER);  

nx_packet_data_append(send_packet,buf,len,&AppPool,NX_WAIT_FOREVER);

ret = nx_tcp_socket_send(&TCPSocket, send_packet, NX_WAIT_FOREVER);

if(ret) nx_packet_release(send_packet);

}  

2 REPLIES 2

Hello @Community member​ ,

Your problem has been reported internally. I will keep you updated.

Thank you for your understanding.

BeST Regards,

Walid

Hello @Community member​ 

We have increased the buffer size to more 4096, but we don't see any problems.

Could you please share your example to reproduce your issue?

Thanks in advance.

Walid