Esp 32 paniced loadprohibited

Hello, I am using arduino 1.8.13. My tool is esp32 wroom 3c. When I downloaded the program , I was able to connect to the wifi, but panic appeared. Here are my code and serial monitor errors.
I'm going to use esp32 to connect to the blink app, and the magic package wakes up my computerLooking forward to your help

#define BLINKER_WIFI
#define BLINKER_MIOT_OUTLET

#include <Blinker.h>
#include <WiFiUDP.h>
#include <WiFi.h>
char auth[] = " ";
char ssid[] = "SERENDIPITY";
char pswd[] = " ";

WiFiUDP udp;

bool oState = false;
BlinkerButton Button1("awaking");

void button1_callback(const String & state)
{
BLINKER_LOG("get button state: ", state);
digitalWrite(LED_BUILTIN, HIGH);
delay(50);
digitalWrite(LED_BUILTIN,LOW);
delay(50);
pcawaking();
digitalWrite(LED_BUILTIN, HIGH);
delay(50);
digitalWrite(LED_BUILTIN, LOW);
delay(50);
digitalWrite(LED_BUILTIN, HIGH);
delay(50);
digitalWrite(LED_BUILTIN, LOW);
delay(50);
}

void miotPowerState(const String & state)
{
BLINKER_LOG("need set power state: ", state);

if (state == BLINKER_CMD_ON) {
    BlinkerMIOT.powerState("on");
    BlinkerMIOT.print();
     digitalWrite(LED_BUILTIN, HIGH);
     delay(25);
     digitalWrite(LED_BUILTIN, LOW);
     delay(25);
     pcawaking();
     digitalWrite(LED_BUILTIN, HIGH);
     delay(25);
     digitalWrite(LED_BUILTIN, LOW);
     delay(25);
     digitalWrite(LED_BUILTIN, HIGH);
     delay(25);
     digitalWrite(LED_BUILTIN, LOW);
     oState = false;  
}
else if (state == BLINKER_CMD_OFF) {
    digitalWrite(LED_BUILTIN, LOW);

    BlinkerMIOT.powerState("off");
    BlinkerMIOT.print();

    oState = false;
}

}

void miotQuery(int32_t queryCode)
{
BLINKER_LOG("MIOT Query codes: ", queryCode);

switch (queryCode)
{
    case BLINKER_CMD_QUERY_ALL_NUMBER :
        BLINKER_LOG("MIOT Query All");
        BlinkerMIOT.powerState(oState ? "on" : "off");
        BlinkerMIOT.print();
        break;
    case BLINKER_CMD_QUERY_POWERSTATE_NUMBER :
        BLINKER_LOG("MIOT Query Power State");
        BlinkerMIOT.powerState(oState ? "on" : "off");
        BlinkerMIOT.print();
        break;
    default :
        BlinkerMIOT.powerState(oState ? "on" : "off");
        BlinkerMIOT.print();
        break;
        
}
    digitalWrite(LED_BUILTIN, HIGH);
    delay(25);
    digitalWrite(LED_BUILTIN, LOW);
    delay(25);
    digitalWrite(LED_BUILTIN, HIGH);
    delay(25);
    digitalWrite(LED_BUILTIN, LOW);

}

void pcawaking()
{
int i=0;
char mac[6]={0x32,0x0F,0x3E,0x9S,0xEE,0x74};
char * Address = "192.168.3.255";
int Port = 3333;

for(i=0;i<6;i++)  
{
  pac[i]=0xFF;
}
for(i=6;i<102;i+=6)
{
  memcpy(pac+i,mac,6);
}
udp.beginPacket(Address, Port);
udp.write((byte*)pac, 102);
udp.endPacket();

}

void dataRead(const String & data)
{
BLINKER_LOG("Blinker readString: ", data);

Blinker.vibrate();

uint32_t BlinkerTime = millis();

Blinker.print("millis", BlinkerTime);

}

void setup()
{
Serial.begin(115200);
BLINKER_DEBUG.stream(Serial);

pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, LOW);

Blinker.begin(auth, ssid, pswd);
Blinker.attachData(dataRead);

BlinkerMIOT.attachPowerState(miotPowerState);
BlinkerMIOT.attachQuery(miotQuery);

Button1.attach(button1_callback);

}

void loop()
{
Blinker.run();
}

When you tried this did it fault?

void setup()
{
Serial.begin(115200);
//BLINKER_DEBUG.stream(Serial);

//pinMode(LED_BUILTIN, OUTPUT);
//digitalWrite(LED_BUILTIN, LOW);

//Blinker.begin(auth, ssid, pswd);
//Blinker.attachData(dataRead);

//BlinkerMIOT.attachPowerState(miotPowerState);
//BlinkerMIOT.attachQuery(miotQuery);

//Button1.attach(button1_callback);
}

?
When you tried this

void setup()
{
Serial.begin(115200);
BLINKER_DEBUG.stream(Serial);

//pinMode(LED_BUILTIN, OUTPUT);
//digitalWrite(LED_BUILTIN, LOW);

//Blinker.begin(auth, ssid, pswd);
//Blinker.attachData(dataRead);

//BlinkerMIOT.attachPowerState(miotPowerState);
//BlinkerMIOT.attachQuery(miotQuery);

//Button1.attach(button1_callback);
}

did it fault?

Unfortunately, it still doesn't work properly. Maybe blink is a niche app

I'd contact the author of the library and ask what's the deal.

sry,This library file may only be used in China. At the same time, I cut the code. It can still be compiled successfully, but there will still be: core 1 panic'ed (LoadProhibited)
panic
Finally, I feel sorry for my English level

Then go talk to the people in Chine who made the library about why it does not work with a ESP32. Good luck.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.