Open bv73 opened 6 months ago
But I have some issues with sta mode
To connect to AP in STA mode you should reduce TX_power. See https://github.com/espressif/arduino-esp32/issues/6767#issuecomment-1145661485
wifi.mode(wifi.STATION)
wifi.sta.config({ ssid = "***", pwd = "***", auto = true }, true)
wifi.start()
wifi.sta.settxpower(8) -- !!!!!!
wifi.sta.on("got_ip", function(ev, info) print("NodeMCU IP config:", info.ip) end)
wifi.sta.connect()
Expected behavior
Normal working with
wifi
moduleActual behavior
After
idf.py set-target esp32c3
andmake
I have suspicious small size of firmware and errors for mention of thewifi
module.Test code
Any commands like
wifi.start()
orwifi.mode(wifi.STATION, true)
etcHardware
ESP32C3 supermini with external USB-UART adapter, connected to GPIO20 & GPIO21.
Later I found out that the
components/modules/CMakeLists.txt
file was missing a line${wifi_modules}
So, now
wifi
module is working. But I have some issues withsta
mode whileap
mode working well. Please, add the missing line to the source code so that the firmware can be fully used.