c_cpp ESP8266的HTTP请求 - 来自http://bitsofgyan.com/index.php/2016/05/01/http-requests-with-esp8266/

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了c_cpp ESP8266的HTTP请求 - 来自http://bitsofgyan.com/index.php/2016/05/01/http-requests-with-esp8266/相关的知识,希望对你有一定的参考价值。

http.begin("http://192.168.0.104:8080/webappfordemo/Version");
 
int httpCode = http.GET();
if(httpCode == HTTP_CODE_OK)
{
   Serial.print("HTTP response code ");
   Serial.println(httpCode);
   String response = http.getString();
   Serial.println(response);
}
else
{
   Serial.println("Error in HTTP request");
}
 
http.end();

以上是关于c_cpp ESP8266的HTTP请求 - 来自http://bitsofgyan.com/index.php/2016/05/01/http-requests-with-esp8266/的主要内容,如果未能解决你的问题,请参考以下文章

c_cpp ESP8266看门狗WDT - 来自https://learn.sparkfun.com/tutorials/esp8266-thing-hookup-guide/using-the-a

c_cpp 读/写ESP8266 EEPROM - 来自https://forum.arduino.cc/index.php?topic=461677.0

c_cpp ESP8266 HTTP GET通过WiFi

c_cpp 通过ESP8266 EEPROM中的网页提供WIFI SSID,密码和Blynk密钥 - 来自https://community.blynk.cc/t/feeding-wifi-ssid-

c_cpp ESP8266GCodeSender

ESP8266 HTTP通讯-客户端向服务器请求数据信息