[GH-ISSUE #1304] After successful wm.autoConnect() WiFiClient stays disconnected #1118

Closed
opened 2026-02-28 01:28:36 +03:00 by kerem · 1 comment
Owner

Originally created by @lptr on GitHub (Oct 27, 2021).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1304

Basic Infos

Hardware

WiFimanager Branch/Release: master

Esp8266/Esp32: ESP32

Hardware: LilyGo T7 1.5 w/ ESP-WROOM-8

Core Version: 3.3.2

Description

    WiFiClient client;

    if (!wm.autoConnect()) {
        fatalError("Failed to connect to WIFI");
    }
    WiFi.waitForConnectResult();
    Serial.println("WIFI connected: " + String(WiFi.isConnected()));
    Serial.println("WiFiClient connected: " + String(client.connected()));

This prints:

WIFI connected: 1
WiFiClient connected: 0

I see that the server uses its own WiFiClient, but I can't find a way to get to that instance.

Settings in IDE

IDE: PlatformIO 5
Module: esp32dev

Originally created by @lptr on GitHub (Oct 27, 2021). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1304 ### Basic Infos #### Hardware WiFimanager Branch/Release: `master` Esp8266/Esp32: ESP32 Hardware: LilyGo T7 1.5 w/ ESP-WROOM-8 Core Version: 3.3.2 ### Description ```cpp WiFiClient client; if (!wm.autoConnect()) { fatalError("Failed to connect to WIFI"); } WiFi.waitForConnectResult(); Serial.println("WIFI connected: " + String(WiFi.isConnected())); Serial.println("WiFiClient connected: " + String(client.connected())); ``` This prints: ```text WIFI connected: 1 WiFiClient connected: 0 ``` I see that the server uses its own `WiFiClient`, but I can't find a way to get to that instance. ### Settings in IDE IDE: PlatformIO 5 Module: `esp32dev`
kerem closed this issue 2026-02-28 01:28:36 +03:00
Author
Owner

@lptr commented on GitHub (Oct 28, 2021):

Sorry, my bad, there should be no relation between WiFiManager and WiFiClient.

<!-- gh-comment-id:953892004 --> @lptr commented on GitHub (Oct 28, 2021): Sorry, my bad, there should be no relation between WiFiManager and WiFiClient.
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#1118
No description provided.