【已解决】mqtt error

hello_meeyo
Posts: 17
Joined: Tue Jan 17, 2023 2:08 am

【已解决】mqtt error

Postby hello_meeyo » Wed Mar 22, 2023 8:31 am

Dear 大神们:
你们好,我遇到一个问题,esp32s3连上wifi后,再给wifi断开(路由器拔电)30秒,30秒后再给路由器上电,这时候mqtt重新连接上,但是报如下错误,请问有人知道是什么情况吗,thks:
Other event id:7
[0;31mE (100854) MQTT_CLIENT: mqtt_message_receive: transport_read() error: errno=128[0m
MQTT_EVENT_ERROR
[0;31mE (100855) MQTT_CLIENT: mqtt_process_receive: mqtt_message_receive() returned -1[0m

ESP_YJM
Posts: 300
Joined: Fri Feb 26, 2021 10:30 am

Re: mqtt error

Postby ESP_YJM » Thu Mar 23, 2023 2:17 am

这个错误是链接已经断开了,我们还在用这个链接发数据,这个可以不用关心,你路由器上电后,mqtt 能重连成功吗?

hello_meeyo
Posts: 17
Joined: Tue Jan 17, 2023 2:08 am

Re: mqtt error

Postby hello_meeyo » Fri Mar 24, 2023 6:51 am

Dear ESP_YJM:
你好,再连接的时候能连上,但是久了就会导致板子crash。我后面找到解决方法了。一旦wifi掉线,我就stop掉设备,连上的时候再重新start就没有这个错误了。thks。

Who is online

Users browsing this forum: Google [Bot] and 37 guests