[GH-ISSUE #1185] How to disconnect from wifi? #1014

Open
opened 2026-02-28 01:28:07 +03:00 by kerem · 0 comments
Owner

Originally created by @jbrepogmailcom on GitHub (Jan 5, 2021).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1185

PLEASE TRY DEVELOPMENT BRANCH before submitting bugs on release or master, in case they were already fixed.

Issues without basic info will be ignored or closed!

Please fill the info fields, it helps to get you faster support ;)

if you have a stack dump decode it:
https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/stack_dump.rst

for better debug messages:
https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/debugging.rst

----------------------------- Remove above -----------------------------

Basic Infos

Hardware

WiFimanager Branch/Release: Development

Esp8266/Esp32:

Hardware: ESP8266

Core Version: 2.4.0, staging

Description

How can I disconnect from wifi? When I use wifiManager.disconnect(); I get compilation error
'class WiFiManager' has no member named 'disconnect'

Settings in IDE

Module: ESP8266

Additional libraries:

Sketch

        WiFiManager wifiManager;
        wifiManager.setAPCallback(configModeCallback);
        boolean is_connected = wifiManager.autoConnect(D_Name);

        wifiManager.disconnect();                                                   <-- Here I get error

#include <Arduino.h>

N/A

Debug Messages

messages here
Originally created by @jbrepogmailcom on GitHub (Jan 5, 2021). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1185 ## PLEASE TRY DEVELOPMENT BRANCH before submitting bugs on release or master, in case they were already fixed. ## Issues without basic info will be ignored or closed! Please fill the info fields, it helps to get you faster support ;) if you have a stack dump decode it: https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/stack_dump.rst for better debug messages: https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/debugging.rst ----------------------------- Remove above ----------------------------- ### Basic Infos #### Hardware WiFimanager Branch/Release: Development Esp8266/Esp32: Hardware: ESP8266 Core Version: 2.4.0, staging ### Description How can I disconnect from wifi? When I use wifiManager.disconnect(); I get compilation error 'class WiFiManager' has no member named 'disconnect' ### Settings in IDE Module: ESP8266 Additional libraries: ### Sketch WiFiManager wifiManager; wifiManager.setAPCallback(configModeCallback); boolean is_connected = wifiManager.autoConnect(D_Name); wifiManager.disconnect(); <-- Here I get error #include <Arduino.h> N/A ### Debug Messages ``` messages here ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#1014
No description provided.