Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wi-Fi module is missing in ESP32C3 #3654

Open
bv73 opened this issue May 29, 2024 · 1 comment
Open

Wi-Fi module is missing in ESP32C3 #3654

bv73 opened this issue May 29, 2024 · 1 comment
Labels

Comments

@bv73
Copy link

bv73 commented May 29, 2024

Expected behavior

Normal working with wifi module

Actual behavior

After idf.py set-target esp32c3 and make I have suspicious small size of firmware and errors for mention of the wifi module.

Test code

Any commands like wifi.start() or wifi.mode(wifi.STATION, true) etc

Hardware

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}

elseif(IDF_TARGET STREQUAL "esp32c3")
  list(APPEND module_srcs
    ${wifi_modules}
  )

So, now wifi module is working. But I have some issues with sta mode while ap mode working well.
Please, add the missing line to the source code so that the firmware can be fully used.

@serg3295
Copy link

But I have some issues with sta mode

To connect to AP in STA mode you should reduce TX_power. See espressif/arduino-esp32#6767 (comment)

  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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants