Forums - qcom_http_client_method(HTTPC_POST_CMD) doesn't work on QCA4010

2 posts / 0 new
Last post
qcom_http_client_method(HTTPC_POST_CMD) doesn't work on QCA4010
Shreyas2415
Join Date: 28 Jun 17
Posts: 1
Posted: Wed, 2017-06-28 01:13

Dear Qualcomm, 

In one of our previous IOT projects, we were using QCA4004 where we used the following API to post data to the cloud --> 

qcom_http_client_method(HTTPC_POST_CMD,prvWifi_buffer,NULL,(void*)prvWifi_response,NULL);

Now we have moved to a new Qualcomm chip QCA4010 and we were hoping that the same API should work without any problem. I see that whenever we use this API, we always get a -1 error from it. I am not sure what is happening out there. However

rc = qcom_http_client_method(HTTPC_DATA_CMD,

                                     (uint8_t*)"authToken", prvWifi_buffer,

                                     NULL,NULL);

Works perfectly! (At least I am not getting any error) 

I am 100% certain that my SSL certificates are in place etc. I am using HTTP(s) to post. 

Can someone help me out here ? 

Regards,

Shrey

  • Up0
  • Down0
raylin0530
Join Date: 15 Aug 17
Posts: 5
Posted: Wed, 2017-08-16 00:33

Dear Cusotmer,

Please check the QAC4010 SDK for qcom_http_client_method and it also enhanced void *ssl_ctx.

and you can refer to Swat_pares.c sample code.

A_STATUS qcom_http_client_method(

_qcom_http_client_method(A_UINT32 cmd, A_UINT8 *url, A_UINT8 *data, A_UINT8 *value, void *ctx);

For HTTP with SSL, the SSL context with data instead of NULL is passing to differentiate between HTTPS and HTTP in the lower layers.
For normal HTTP, the SSL context is NULL.

Regards,

Ray

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.