Support for HTTP fragmented packet

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

cross mob
ClMa_3563786
Level 2
Level 2

Hello,

I need some help. I've connect my device to a website successfully using HTTP.

I start receiving the first data in my callback successfully but quickly I've stop receiving data.

After some debug, I figure out the issue was over these lines:

http_client.c::client_receive_handler()

wiced_packet_get_data( packet, 0, &data, &fragment_available_data_length, &total_available_data_length );

if ( fragment_available_data_length < total_available_data_length )

{

            WPRINT_LIB_ERROR( ("Unable to handle fragmented packets\n") );

            wiced_packet_delete( packet );

            return WICED_ERROR;

}

Is there a way to manage fragmented packets ?

Thanks for your help

Clément

0 Likes
1 Solution
RaktimR_11
Moderator
Moderator
Moderator
500 replies posted 250 replies posted 100 replies posted

The http client library has been updated since 6.1. I tried to check the issue with WICED Studio 6.2.1 but could not reproduce the same. Please check with the updated library and try putting debug prints for fragment_available_data_length and total_available_data_length for further debug.

View solution in original post

1 Reply
RaktimR_11
Moderator
Moderator
Moderator
500 replies posted 250 replies posted 100 replies posted

The http client library has been updated since 6.1. I tried to check the issue with WICED Studio 6.2.1 but could not reproduce the same. Please check with the updated library and try putting debug prints for fragment_available_data_length and total_available_data_length for further debug.