Search found 6 matches

by langjitianya
Thu Nov 11, 2021 5:43 am
Forum: ESP IoT Solution 中文讨论版
Topic: [已解决] ESP32 MQTT发送数据失败导致重启
Replies: 4
Views: 17180

Re: ESP32 MQTT发送数据失败导致重启

我找到问题了,在MQTT断开或者出错的情况下把删除任务函数去掉就不会报错了,重连功能正常
by langjitianya
Thu Nov 11, 2021 3:43 am
Forum: ESP IoT Solution 中文讨论版
Topic: [已解决] ESP32 MQTT发送数据失败导致重启
Replies: 4
Views: 17180

Re: ESP32 MQTT发送数据失败导致重启

问题也不是每次都必定出现的,有时候测试几十分钟才会有这个问题
by langjitianya
Thu Nov 11, 2021 2:03 am
Forum: ESP IoT Solution 中文讨论版
Topic: [已解决] ESP32 MQTT发送数据失败导致重启
Replies: 4
Views: 17180

Re: ESP32 MQTT发送数据失败导致重启

idf4.3版本 static esp_err_t mqtt_event_handler_cb(esp_mqtt_event_handle_t event) { static bool create_task_flag = false; int msg_id; uint8_t led_flag = 0; uint8_t send_flag = 0; //esp_mqtt_client_handle_t client1 = event->client; // your_context_t *context = event->context; switch (event->event_id) { ...
by langjitianya
Fri Nov 05, 2021 1:53 am
Forum: ESP IoT Solution 中文讨论版
Topic: [已解决] ESP32 MQTT发送数据失败导致重启
Replies: 4
Views: 17180

[已解决] ESP32 MQTT发送数据失败导致重启

我在用ESP32-C3 MQTT通信时遇到发送数据出错而重启的情况,谁能帮忙解决一下问题。这是报错导致重启的日志: I (134496) MQTT: MQTT_EVENT_ERROR I (134496) MQTT: Last errno string (Success) E (134496) MQTT_CLIENT: Error write data or timeout, written len = 0, errno=0 Guru Meditation Error: Core 0 panic'ed (Store access fault). Exception was unhandled....
by langjitianya
Thu Nov 04, 2021 1:59 am
Forum: ESP Mesh 中文讨论版
Topic: ESP32 MQTT发送数据失败导致重启
Replies: 1
Views: 13089

ESP32 MQTT发送数据失败导致重启

我的MQTT通信偶尔会有以下报错导致重启,什么原因导致的?谁能帮忙解答一下 I (134496) MQTT: MQTT_EVENT_ERROR I (134496) MQTT: Last errno string (Success) E (134496) MQTT_CLIENT: Error write data or timeout, written len = 0, errno=0 Guru Meditation Error: Core 0 panic'ed (Store access fault). Exception was unhandled. Stack dump detected...
by langjitianya
Thu Nov 04, 2021 1:57 am
Forum: ESP-IDF 中文讨论版
Topic: ESP32 MQTT发送数据失败导致重启
Replies: 1
Views: 2097

ESP32 MQTT发送数据失败导致重启

我在用ESP32-C3 MQTT通信时遇到发送数据出错而重启的情况,谁能帮忙解决一下问题。报错如下: I (134496) MQTT: MQTT_EVENT_ERROR I (134496) MQTT: Last errno string (Success) E (134496) MQTT_CLIENT: Error write data or timeout, written len = 0, errno=0 Guru Meditation Error: Core 0 panic'ed (Store access fault). Exception was unhandled. Stack ...