esp32c3使用idfv5.31,有时候wifi会断联,原因是102,但找不到对应的错误是什么?下面是上下文打印
I (130522367) mqtt: MQTT_EVENT_PUBLISHED, msg_id=34730
[23/01/25 - 05:21:15:898]
I (130745187) wifi:state: run -> init (0x66a0)
[23/01/25 - 05:24:58:716]
I (130745197) wifi:pm stop, total sleep time: 91832915898 us / 130742715788 us
[23/01/25 - 05:24:58:728]
[23/01/25 - 05:24:58:728]
I (130745197) wifi:<ba-del>idx:0, tid:0
[23/01/25 - 05:24:58:728]
I (130745197) wifi:<ba-del>idx:1, tid:6
[23/01/25 - 05:24:58:733]
I (130745207) wifi:new:<1,0>, old:<1,1>, ap:<255,255>, sta:<1,1>, prof:1, snd_ch_cfg:0x0
[23/01/25 - 05:24:58:739]
I (130745207) wifi: retry to connect to the AP, failed reason: 102.
[23/01/25 - 05:24:58:750]
E (130745207) transport_base: poll_read select error 113, errno = Software caused connection abort, fd = 54
[23/01/25 - 05:24:58:761]
E (130745227) mqtt_client: Poll read error: 119, aborting connection
[23/01/25 - 05:24:58:766]
I (130745237) mqtt: MQTT_EVENT_DISCONNECTED
[23/01/25 - 05:24:58:770]
I (130750027) wifi:Coexist: Wi-Fi connect fail, apply reconnect coex policy
[23/01/25 - 05:25:03:566]
[23/01/25 - 05:25:03:566]
I (130750037) wifi: retry to connect to the AP, failed reason: 201.
[23/01/25 - 05:25:03:570]
I (130750057) wifi:new:<1,1>, old:<1,0>, ap:<255,255>, sta:<1,1>, prof:1, snd_ch_cfg:0x0
[23/01/25 - 05:25:03:596]
I (130750067) wifi:state: init -> auth (0xb0)
[23/01/25 - 05:25:03:599]
I (130750087) wifi:state: auth -> assoc (0x0)
[23/01/25 - 05:25:03:613]
I (130750087) wifi:state: assoc -> run (0x10)
wifi断联原因102对应的是什么错误?
wifi断联原因102对应的是什么错误?
Last edited by GFeonix on Sun Jan 26, 2025 9:37 am, edited 1 time in total.
Re: wifi断联原因102对应的是什么错误?
这是我断联时候的处理代码
- else if (event_base == WIFI_EVENT && event_id == WIFI_EVENT_STA_DISCONNECTED)
- {
- wifi_event_sta_disconnected_t *event = (wifi_event_sta_disconnected_t *) event_data;
- s_wifi_t.wifi_failed_reason = event->reason;
- ESP_LOGI(TAG, "retry to connect to the AP, failed reason: %d.", event->reason);
- if(s_wifi_t.stat == WIFI_STAT_DISCONNECTED)
- {
- s_wifi_t.stat = WIFI_STAT_NONE;
- return;
- }
- if(s_wifi_t.wifi_connect_mode == WIFI_CONNECT_LOCAL)
- {
- esp_wifi_connect();
- return;
- }
- xEventGroupSetBits(s_wifi_t.wifi_event_group, WIFI_FAIL_BIT);
- }
Who is online
Users browsing this forum: No registered users and 47 guests