mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #601] Obtain WiFi channel after connecting to AP? #503
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#503
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @debsahu on GitHub (Apr 25, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/601
After successful connection to AP using WiFiManager, is there an easy way to get the channel of the AP it is connected to?
WiFi.SSID()andWiFi.psk()give SSID and password back but can't get channel number. Since WiFiManager does a scan, can I get the channel number of the connected network using ESP8266WiFiSTAClass?@tablatronix commented on GitHub (Apr 25, 2018):
Serial.println(WiFi.channel());@debsahu commented on GitHub (Apr 25, 2018):
I thought channel() needed a
networkItem, according to https://arduino-esp8266.readthedocs.io/en/latest/esp8266wifi/scan-class.html#channel I might be wrong.@tablatronix commented on GitHub (Apr 25, 2018):
@debsahu commented on GitHub (Apr 25, 2018):
you the best, thank you. close?
@tablatronix commented on GitHub (Apr 25, 2018):
now the scan class does have its own channel function also which is what you posted above