Clean disconnection of wifi by calling esp_wifi_stop()

Zeni241
Posts: 86
Joined: Tue Nov 20, 2018 4:28 am

Clean disconnection of wifi by calling esp_wifi_stop()

Postby Zeni241 » Fri Nov 01, 2019 10:44 am

Why I get message :

Code: Select all

E (21326) event: system_event_sta_disconnected_handle_default 294 esp_wifi_inter
nal_reg_rxcb ret=0x3014
When I call

Code: Select all

esp_wifi_stop();
.
How can I stop WiFi in clean way so that mqtt don't get "lwt" message?

nopnop2002
Posts: 46
Joined: Thu Oct 03, 2019 10:52 pm

Re: Clean disconnection of wifi by calling esp_wifi_stop()

Postby nopnop2002 » Sat Jan 18, 2020 7:50 am

Unregister handler before stopping wifi

Who is online

Users browsing this forum: Google [Bot], uC_Jon and 271 guests