← index #6036Issue #3518
Off-topic · high · value 1.056
QUERY · ISSUE

ESP32 WiFi AP Channel Width

openby gigawattsopened 2020-05-13updated 2024-05-27
port-esp32

It seems when creating a WiFi AP, it defaults to a 40 MHz channel bandwidth.

import network
ap = network.WLAN(network.AP_IF)
ap.active(True)
ap.config(essid="TEST")
ap.config(authmode=0, channel=2)

In the above example, when viewing the broadcasted SSID with an Android app such as "Wifi Analyzer", shows "CH 2+6" and "2447 - 2407 = 40 MHz".

Is there a setting that can be changed to set this to 20 MHz, so it only uses one channel?

CANDIDATE · ISSUE

How to connect to an ESP32 from a mobile application?

closedby ShrikantKumbharopened 2017-12-26updated 2019-06-24
port-esp32

I want to communicate ESP32 with my mobile app. I done micopython coding as follows :

import network
ap = network.WLAN(network.AP_IF)
ap.active(True)
ap.config(essid='ESP32')
ap.config(authmode=3, password='123456789')

In this code Access point is created and it is visible in my android mobile.
But when i connect my mobile to access point it is showing “saved” message instead of “connected” even though i have entered correct password.
I followed same procedure using arduino code then i am able to connect my mobile with access point created by esp32. Any help is highly appreciable .

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied