ESP 12E模组ESP8266 |无法调用Https Api连接失败

问题描述

我尝试了所有操作,但是每次遇到client.connect的“连接失败”时。 我用过https://gorest.co.in/public-api/user/123 用好指纹。使用ESP-12E模块 任何指针都会有很大帮助

我从浏览器中复制的指纹

#define TEST_HOST "gorest.co.in"
#define TEST_HOST_FINGERPRINT "‎‎f1 5f 90 b4 73 c5 98 1e ec 08 92 69 8c e5 28 f8 7f b3 a8 e8"

// Use WiFiClientSecure class to create TLS connection
  WiFiClientSecure client;
  Serial.print("connecting to ");
  Serial.println(TEST_HOST);

  Serial.printf("Using fingerprint '%s'\n",TEST_HOST_FINGERPRINT);
  //client.setInsecure();
  client.setFingerprint(TEST_HOST_FINGERPRINT);
  
  client.setTimeout(10000);
  if (!client.connect(TEST_HOST,443)) {
    Serial.println("connection failed");
    return;
  }

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...