ESP8266 crashes after simple http request
问题 I am working with the NodeMCU V3 module. Whenever I try to make an http request to my server, the module crashes. Here's the code: void setup() { WiFi.begin("wifi-name", "wifi-password"); while (WiFi.status() != WL_CONNECTED) { //Wait for the WiFI to connect } } void loop() { HTTPClient http; WiFiClient client; http.begin( client, "server-address" ); int httpCode = http.GET(); String payload = http.getString(); //Get the response payload Serial.println(httpCode); //Print HTTP return code