Can't connect ESP32 to hostapd Access Point on Raspberry Pi (but it works with phone)
Posted: Sat Jan 09, 2021 4:26 pm
I have the following problem:
I'm using the default wifi "station" example from esp-idf. Whenever I try to connect to my hostapd access point on my Raspberry Pi, it casts the following error message:
And it will eventually say that a connection was not possible.
HOWEVER: The ESP32 connects flawlessly with my wifi-router!
And strangely enough, the access point seems to work as well, just not for the ESP32. I can connect to it with my phone and laptop just fine (I can even access internet through NAT).
This is my hostapd.conf
(I have enabled verbose logging to syslog and stdout in the hopes that it will log incoming failed connections, but it doesn't)
What am I doing wrong?
I'm using the default wifi "station" example from esp-idf. Whenever I try to connect to my hostapd access point on my Raspberry Pi, it casts the following error message:
Code: Select all
..
I (4914) wifi station: retry to connect to the AP
I (4914) wifi station: connect to the AP fail
I (6954) wifi station: retry to connect to the AP
I (6954) wifi station: connect to the AP fail
I (9004) wifi station: retry to connect to the AP
I (9004) wifi station: connect to the AP fail
I (11054) wifi station: retry to connect to the AP
I (11054) wifi station: connect to the AP failHOWEVER: The ESP32 connects flawlessly with my wifi-router!
And strangely enough, the access point seems to work as well, just not for the ESP32. I can connect to it with my phone and laptop just fine (I can even access internet through NAT).
This is my hostapd.conf
Code: Select all
river=nl80211
ssid=someSSID
country_code=CH
hw_mode=g
channel=6
auth_algs=1
wpa=2
wpa_passphrase=somePWD
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
logger_syslog=-1
logger_syslog_level=0
logger_stdout=-1
logger_stdout_level=0
What am I doing wrong?