How to solve Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled

Hi so i have a final project using antares mqtt on esp32 and here is my code

#include <AntaresESP32MQTT.h>     // Inisiasi library MQTT Antares

#define ACCESSKEY "1503495e9c0072a3:bc9251b4f5d9a726"       // Ganti dengan access key akun Antares anda
#define WIFISSID "ITB WIFI"         // Ganti dengan SSID WiFi anda
#define PASSWORD "1sampe8doang"     // Ganti dengan password WiFi anda

#define projectName "separatorECS"   // Ganti dengan application name Antares yang telah dibuat
#define deviceName "LevelSensor"     // Ganti dengan device Antares yang telah dibuat

AntaresESP32MQTT antares(ACCESSKEY);    // Buat objek antares

void setup() {
  Serial.begin(115200);     // Buka komunikasi serial dengan baudrate 115200
  antares.setDebug(true);   // Nyalakan debug. Set menjadi "false" jika tidak ingin pesan-pesan tampil di serial monitor
  antares.wifiConnection(WIFISSID,PASSWORD);  // Mencoba untuk menyambungkan ke WiFi
  antares.setMqttServer();  // Inisiasi server MQTT Antares
}

void loop() {
  /*
    Cek koneksi ke broker MQTT Antares. Jika disconnect,
    akan dicoba untuk menyambungkan lagi
   */
  antares.checkMqttConnection();

  // Inisiasi variabel
  int temp = random(25,30) ;
  int hum = random(75,90);
  float windsp = float(random(20, 30))/3.33;
  float rainlv = float(random(0, 20))/6.99;
  String lat = "-6.8718189";
  String lon = "107.5872477";

  // Tambahkan variabel ke penampungan data sementara
  antares.add("temperature", temp);
  antares.add("humidity", hum);
  antares.add("wind_speed", windsp);
  antares.add("rain_level", rainlv);
  antares.add("latitude", lat);
  antares.add("longitude", lon);

  // Publish data ke database Antares dan juga broker MQTT Antares
  antares.publish(projectName, deviceName);
  delay(5000);
}

and i got this error on the serial monitor

how can fix this?
thanks in advance

Try commenting the code out until the error is gone to see what causes it

Run the esp32 exception decoder on the error data to get the source line for the error.

potentially divide by zero??
this is the demo sketch from the lib..
antares-esp32-mqtt
no, issues listed..
maybe got some libraries clashing??
strange, sorry..

~q

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