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.

CC3235S: Unresolved symbols error after including OtaHttpClient.h

Part Number: CC3235S


Hello,

We tried including OtaHttpClient.h to make http requests. However, when calling methods (e.g HttpClient_Connect), we get unresolved symbol errors. 

int16_t sockId = HttpClient_Connect(NULL, 0, 5000, 0, NULL, 0);


We also added the path to the File Search Path in the project properties.

Are there any other steps we need to take to ensure linking occurs properly?

Below is our project code (with network info redacted). We are using SDK version 6.10.0.05 because we work as a group with both Mac & Windows users and we can't find a Mac version of the latest SDK.

httpget_CC3235S_LAUNCHXL_tirtos7_ticlang (2).zip

Thank you in advance.

  • why did you add the OtaHttpClient.h?

    this should only be used in the context of the it’s library.

    in httpget.c you already have the httpclient.h included and the example links with the httpclient library by default.

  • Thank you for the response. We have a separate E2E issue opened here describing our issues with the httpget example. We are trying to use the OTA http functions as a possible workaround.

  • You shouldn't use the OtaHttpClient - we are trying to remove this at all (this code is not used at all even in the OTA of SDK 6.10 and newer and is kept only for legacy users).

    Regarding the error in the HTTP Response - this seems like a problem in the server.

    The response should start with the HTTP version ("GET / HTTP...: - is a format of an HTTP request which is not relevant for the getStatus) - see for example: https://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html.

    Anyway, if you find a real issue in the HTTPClient library - please raise it and we will suggest a fix.

  • Thanks again for responding. We also tried using the server the example provided  (example.com), and received the same error. When testing on the web and querying our own server, we do see the version in the response (shown below).

    I know the "GET / HTTP..." is request format, which is why we are confused that is what the example value is showing when debugging.

    Would appreciate any guidance from here.

  • First, don't use OtaHttpClient - but the SDK's standard HTTPClient.

    I don't know why you are getting the GET in the response - it doesn't make sense. Please check your application code and refer to the HTTP get example (maybe you are looking at the wrong memory buffer).