Open societyofrobots opened 2 years ago
I don't know if this is of any help, but I had the exact same issue and fixed it by removing WiFi.softAPdisconnect (true);
01:42:08.740 -> ets Jun 8 2016 00:22:57 01:42:08.740 -> 01:42:08.740 -> �& 01:42:08.740 -> ����uD��ESP32 Hotspot khula hua hai. Ab aapke phone se connect karein. 01:42:09.612 -> Hotspot SSID: ESP32_Hotspot 01:42:09.612 -> Hotspot Password: password 01:42:28.596 -> Phone connect hua hai. 01:42:28.629 -> Ghar ke Wi-Fi ka SSID aur password enter karein. 01:42:33.632 -> E (31756) wifi_init_default: netstack cb reg failed with 12308 01:42:34.690 ->
i have giving some issue anyone can solve please
Was this issue ever resolved?
I ended up dropping the project for unrelated reasons, so never got back to resolving this issue.
It is not occurring in my other ESP32 projects.
For me this message was caused when a client was connected to the AP, and "WiFi.softAPdisconnect(true)" disconnected it, but the client tries to reconnect but is refused, and so you get the "wifi_init_default: netstack cb reg failed with 12308" message before "WiFi.mode(WIFI_OFF)" completely closes the interface.
If you remove the "WiFi.softAPdisconnect(true)" then the client stays connected until "WiFi.mode(WIFI_OFF)" closes the interface, so you don't get the message. But I'm not sure if it's better to leave "WiFi.softAPdisconnect(true)" in or to remove it.
I'm getting an error I don't understand.
I'm in AP mode and connected via phone without issue. I then disconnect via phone, and it correctly changes to wifi mode.
However, it gives an error and the IP incorrectly becomes 255.255.255.255. It never changes to State 4:
E (59412) wifi_init_default: netstack cb reg failed with 12308
Looking up the error, it looks like maybe not enough buffer memory? https://github.com/espressif/esp-idf/blob/cc98ce3c3ae7f5a20bc7bddb79c3b368dbe7066f/components/esp_wifi/src/wifi_default.c#L54-L57
It's not a problem with my router or custom ESP32 hardware as I don't have this problem with another simpler firmware I'm using.
Below is the log: