logo elektroda
logo elektroda
X
logo elektroda

ESP32 - Guru Meditation Error when controlling WiFi relays

globalinfo 507 2
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18590175
    globalinfo
    Level 13  
    Welcome,

    I'm trying to control 4 relays via WIFI and have come across a problem.

    When performing

    Code: C / C++
    Log in, to see the code
    .

    It displays the following message to me.
    Quote:

    Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
    Core 1 register dump:
    PC : 0x400d35c0 PS : 0x00060430 A0 : 0x800d3694 A1 : 0x3ffb1d40
    A2 : 0x000000 A3 : 0x3ffb1d8f A4 : 0x00000001 A5 : 0x00000001
    A6 : 0x00000020 A7 : 0x000000 A8 : 0x000000 A9 : 0x000000
    A10 : 0x000000 A11 : 0x00000080 A12 : 0x00000050 A13 : 0x000000
    A14 : 0x000000 A15 : 0x000000 SAR : 0x000000a EXCCAUSE: 0x0000001c
    EXCVADDR : 0x00000008 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xffffffff

    Backtrace: 0x400d35c0:0x3ffb1d40 0x400d3691:0x3ffb1d60 0x4013ffaa:0x3ffb1d80 0x400d5541:0x3ffb1db0 0x400d55d9:0x3ffb1dd0 0x400d16ad:0x3ffb1df0 0x400d5bd5:0x3ffb1fb0 0x40088b7d:0x3ffb1fd0

    Rebooting...
    .

    below is part of the code

    Code: C / C++
    Log in, to see the code
    .
  • ADVERTISEMENT
  • #2 18590529
    khoam
    Level 42  
    globalinfo wrote:
    At the time of execution
    String request = client.readStringUntil('\n');
    .
    Probably the allowed buffer size for the String variable was exceeded, hence the exception. Without decoding the backtrace it is difficult to say anything more.
  • #3 18590648
    globalinfo
    Level 13  
    The entire code is on
    Link .
    It's for ESP8266, but I'm trying to adapt it for ESP32.

    In the code I have replaced the library

    #include <ESP8266WiFi.h> to #include <WiFi.h>
    #include <ESP8266mDNS.h> to #include <mDNS.h>
ADVERTISEMENT