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.

[参考译文] RTOS/CC3200:cc3200 wifi

Guru**** 2563960 points
Other Parts Discussed in Thread: CC3200

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

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/754720/rtos-cc3200-cc3200-wifi

器件型号:CC3200

工具/软件:TI-RTOS

您好,团队,

我正在尝试创建一个网页、  为 cc3200提供静态 IP 地址、如所示  







HTTPrequest.open("POST","No_content", true);
HTTPrequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
//HTTPrequest.setRequestHeader("Content-length", params.length);
//HTTPrequest.setRequestHeader("Connection", "close");
HTTPrequest.onreadystatechange = function()
{
if (HTTPrequest.readyState==4 && HTTPrequest.status==200)
{
}
}
HTTPrequest.send(params);

//window.location="main.html";
}




SSID:  


Passphase (Passphase):  


IP 地址:          


子网:  


网关:  


DNS:  





但无法将所有数据发布到 SimpleLinkHttpServerCallback()函数。 如果我减小 var params 的长度="__sl_P_PS="+'$'+SSID+'、'+PAS+'、'+IP+'、'+sub+'#';则只有 SimpleLinkHttpServerCallback 被调用。  

当我从网页上检查时、我遇到了一个问题

 //HTTPrequest.setRequestHeader("Content-length"、params.length);
//HTTPrequest.setRequestHeader("Connection"、"关闭");

因此我评论说、它解决了页面中的错误、但没有数据通信。

能不能给我展示一种我犯错的方式。

相关信息  

Pranav

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

    Pranav、

    我仍然关注您的其他 帖子。 请坚持使用原始主题以保持井然有序。

    Jesu