我使用 ESP32 板。我想从谷歌表中获取内容。我的参考代码如下错误是ESP8266WiFi.h:没有这样的文件或目录。有人给我一些建议吗?谢谢
`#include <ESP8266WiFi.h>
#include "HTTPSRedirect.h"
const char* ssid = " ";
const char* password = " ";
const char* host = "script.google.com";
const char *GScriptId = "";
const int httpsPort = 443;
HTTPSRedirect* client ;
void setup(){
WiFi.begin(ssid, password);
client = new HTTPSRedirect(httpsPort);
client->setPrintResponseBody(true);
client->setContentTypeHeader("application/json");
client->connect(host, httpsPort);
}
void loop() {
String url3 = String("/macros/s/") + GScriptId + "/exec?&id=";
if (client->GET(url3, host)){
Serial.println("GET SUCCESS");
}
delay(4000);
}`