Skip to content

Wifi.softAPgetStationNum() does not work if no client is connect? #7145

@Dork57

Description

@Dork57

Board

ESP32 DEV Kit 1

Device Description

ESP32 DEV Kit 1

Hardware Configuration

no

Version

v2.0.4

IDE Name

PlattformIo

Operating System

Windows 10

Flash frequency

40Mhz

PSRAM enabled

no

Upload speed

115200

Description

If the ESP32 Wifi run in
WiFi.mode(WIFI_AP_STA);

and the PC is connected, the function WiFi.softAPgetStationNum() returns 1.
But if the PC disconnected it returns furthermore 1.

Can anybody check this?

Sketch

Serial.printf("Connections: %u\r\n", WiFi.softAPgetStationNum());

Debug Message

.

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: BT&WifiBT & Wifi related issuesStatus: SolvedThe issue has been resolved and requires no further action.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions