Data packet size errors using TLS

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,

I'm attempting to make an HTTP request of about 2541 bytes. It worked fine using HTTP, but now I'm trying to use HTTPS, and I'm having trouble with multiple packets. When I tried smaller requests (~370 bytes) it succeeds just fine

I run into the assert in wiced_https_get()->wiced_tcp_send_buffer()->wiced_tcp_send_packet()->wiced_tls_encrypt_packet()->wiced_packet_set_data_end().


It's asserting because data_end is always 5 bytes larger than packet->nx_packet_data_end.

I know the packet pools are created with a size of 1548 bytes, and it's trying to send a packet size of ~1384 bytes.

Any clue why this might be happening? Is there some macro that I should look into changing?

I'm using NetX Duo and WICED 3.1.2


Thanks

Will

0 Likes
5 Replies