Skip to content

"Guru Meditation Er" - related to http request? #5233

Closed
@Alexander96f

Description

@Alexander96f

Hello folks I am currently trying to develop a wifi RFID module based on an ESP32.
Currently I am using a ESP32 Devkit to test the software. I only make a http request like every 200ms to a wifi relais to check the status if its powered on or not.
After some time like 50 minutes the ESP32 just crashes (LED's on the GIPO pins go off) and the programm just stops.

The problem is I dont get a error message which I could decompile, the last stuff I can read in the Serial Monitor is:
"Guru Meditation" or somtimes "Guru Meditation Er"

I first thought that its a problem of the power supply of the ESP32 but I cant reproduce this failure on high power spikes (for example when I put a Chipcard on the RFID module) it just randomly crashes after some time.
The programm probably crashes at the line "if (http.connected()) http.end();"

Does anybody of you has an idea what I can do to locate the exact problem?

Hardware:

Board: ESP32 Dev Module
Core Installation version: I dont know
IDE name: Arduino IDE?
Flash Frequency: 80Mhz
PSRAM enabled: no
Upload Speed: 512000
Computer OS: Windows 10

Description:

Describe your problem here

Sketch: (leave the backquotes for code formatting)

//Change the code below by your sketch
#include <Arduino.h>
#include <SPI.h>
#include <MFRC522.h>
#include <WiFi.h>
#include <HTTPClient.h>

//Basicly its this part of the code that is from interest I think:

void ShellyAbfragen(){
     if(WiFi.status() != WL_CONNECTED)connectWifi();
      
      // Send HTTP GET request
      http.begin(shelly);
      int httpResponseCode = http.GET();
      
      if (httpResponseCode>0) {
        Serial.print("HTTP Response code: ");
        Serial.println(httpResponseCode);
        String payload = http.getString();
        Serial.println(payload);
        Serial.println("Verbindnung mit Shelly erfolgreich!");
      }
      else {
        Serial.print("Error code: ");
        Serial.println(httpResponseCode);
      }
      // Free resources
      if (http.connected()) http.end();
      //http.end();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions