AzureRTOS - NetXDuo WEB HTTP Cliente

Domenico Condemi 1 Reputation point
2022-07-21T22:02:36.99+00:00

Hi,
I'm using [Web Http client functions][1] of NetXDuo with ST Microelectronics board [B-U585I-IOT02A][2] but, after the second call of nx_web_http_client_response_body_get() function, the system loops without any return. I try to change varible and memory size for thread stack and packet pool but there seems to be no effect.
This is my code

app_netxduo.h

/* Includes ------------------------------------------------------------------*/  
#include "nx_api.h"  
  
/* USER CODE BEGIN Includes */  
#include 
Azure RTOS
Azure RTOS
An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
324 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Wenhui Xie 6 Reputation points
    2022-07-26T06:17:05.917+00:00

    Could you modify the wait option of the nx_web_http_client_response_body_get(), from TX_WAIT_FOREVER to 5 *NX_IP_PERIODIC_RATE, and check the status of the second call? If the status is 0x01(NX_NO_PACKET), please check if the server did send the response and if the driver received the response correctly.

    And from the code, you need to release the http_packet after printing the packet content.

    0 comments No comments

  2. Domenico Condemi 1 Reputation point
    2022-09-05T21:43:46.737+00:00

    Hi @Wenhui Xie ,
    Thank you for your reply and sorry for the delay in responding. I solved the problem by changing the #define HTTP_WINDOW_SIZE.

    Thank you