HTTPClient TCP callbacks

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

cross mob
Anonymous
Not applicable

Hi,

I'm writing an HTTP client application, i create my client with http_client_init() and I have an event_handler function.

The event_handler function gets called many times, but there are more than 100 HTTP_DATA_RECEIVED events

before a single HTTP_CONNECTED.

I'was reading the http_client_init() code and it seems that such handler gets called from the callbacks to wiced_tcp_register_callbacks(),

I've put a printf in such callbacks but still socket_connect_callback() gets called after some socket_receive_callback()

Is it a known issue? I have it with both NetX and LwIP

Regards,

Matteo Croce

0 Likes
3 Replies