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.

[参考译文] CC3100:无法通过 HTTPS 发出 HTTP 请求

Guru**** 2540720 points
Other Parts Discussed in Thread: CC3100

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

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/882156/cc3100-could-not-make-http-request-over-https

器件型号:CC3100

您好!

我正在制作一个项目、要求我根据 HTTP 客户端示例向 api.fitbit.com 发出 HTTP 请求。 我收到一条错误消息、指出设备无法获取主机名的 IP。 看起来程序在 sl_NetAppDnsGetHostByName()函数之后失败。 但是、当我尝试使用 httpbin.org 和 howmyssl.com 等其他主机时、会管理以获取 IP 地址。  

以下是我对 HTTP 客户端示例所做的更改、以使其正常工作:

包含片段 https://processors.wiki.ti.com/index.php/CC3100_HTTP_Client 以实现安全连接。

2.将端口80更改为 HTTPS 端口443。

3.在 CC3100上刷写 api.fitbit.com 的证书。

也许有人知道我很高兴知道的问题是什么。 配置如何连接到 HTTP 服务器的方式是否有问题? 或者、与 httpbin.org 相比、他们在 api.fitbit.com 服务器中可能有所不同? 提前感谢您。

下面是使用的 main.c。

 

e2e.ti.com/.../4760.main.c

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

    您好、Muhammad、

    请参阅 此 wiki 、在 HTTP 客户端示例中设置 HTTPS 连接的安全性。

    Jesu