This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-CC3235SF: HTTPClient_create() returns NULL

Part Number: LAUNCHXL-CC3235SF
Other Parts Discussed in Thread: CC3235SF

Tool/software:

Hi,

My customer is evaluating SDK example, "httpget_CC3235SF_LAUNCHXL_freertos_ticlang".
He modified necessary changes (AP parameters, HTTP parameters, etc.).
But UART log shows as below,

httpClientHandle is ' '

statusCode is '(null)'

ret is '(null)'

According to Network Service API document, HTTPClilent_create() returns NULL means failure. 
What is potential cause of the issue?


Thanks and regards,
Koichiro Tashiro

  • Hi,

    Here is the source code of HTTPClientCreate

    This can return null if memory allocation failed or there was no response.

    Best,

    Rogelio

  • Hi Rogelio,

    Thanks for your reply. The customer understood there is memory allocation issue.
    Could you give some suggestions how to solve the memory allocation issue?

    BTW, the customer sent HTTPS POST request after the null was returned for HTTPClient_create().
    It seems HTTPS POST request was successful.
    Do you have any idea why POST request is passed after HTTPClient_create() failure?

    Thanks and regards,
    Koichiro Tashiro