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.

  • Resolved

RTOS: how to rebuild http client library?

Intellectual 600 points

Replies: 3

Views: 264

Tool/software: TI-RTOS

All,

i met error code -3001 when i debug HTTPGET demo, and this error code was defined as below:

/*!

*  @brief Internal send buffer is not big enough

*

*  Define HTTPClient_BUF_LEN in httpclient_internal.h and rebuild the library.

*/

#define HTTPClient_ESENDBUFSMALL                         (-3001)

so it needs to rebuild the library, but i cannot find these CCS project files at simplelink_cc32xx_sdk_2_10_00_04\source\ti\net\http, anyone knows how to rebuild this library?

/*!
 *  Modify the HTTP client object's internal buffer length and rebuild the
 *  library if needed.
 */
#ifndef HTTPClient_BUF_LEN
#define HTTPClient_BUF_LEN                          (1024)    // original is 256
#endif

thanks.

Linx

  • Linx,

    I will look into this tomorrow when we get back from holiday.

    Regards,
    VR
  • In reply to Vincent Rodriguez:

    Hi Linx,

    The most straightforward way to increase the HTTPClient_BUF_LEN and rebuild the library would be to simply copy the httpclient.c into your workspace. This will cause the compiler to build the httpclient code taking into account the updated value of HTTPClient_BUF_LEN in your header, then the linker will link against the object files in your project instead of the provided httpclient_release.a library.

    Copying the httpclient.c into my httpget example application seems to work, with the newly updated HTTPClient_BUF_LEN being used correctly. Let me know if that doesn't work for you, or if you run into other problems with the http client library.

    Regards,
    Michael
  • In reply to Michael Reymond:

    thanks.

    copy httpclient.c into my project, then this issue was fixed.

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.