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_sendRequest ()在 char[]指针传递给'requestURI' param 时挂起

Guru**** 2008950 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/1205062/launchxl-cc3235sf-httpclient_sendrequest-hangs-when-char-pointer-is-passed-to-requesturi-param

器件型号:LAUNCHXL-CC3235SF

我需要修改请求 URI 以将其传递给 Blynk REST API。 我的代码是这样的。

char uri []="/external/api/update?token=OrG3QA71LFJNsIveloGBXqVOzo2WD_TE &V0=1";

uri [61]= 47 + pin_num;

Uri[63]='1';

RET = HttpClient_sendRequest (* HttpClientHandle、HTTP_METHOD、URI、NULL、0、0);

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    在哪里定义了"Uri"? 它位于堆栈上吗? 如果是、请确保没有溢出。

    http 侧没有任何挂起的理由。 检查 HttpGet 示例中的代码(仍将 google.com 作为主机、将"Uri"定义为全局变量)时会出现预期错误404。