Hi!
The case im traying to "solve" is the following:
ESP32 as receiver
ESP8266 as sender
Issues comes from ESP32, which works mainly as STA, so initially it was configured as wifi.mode(WIFI_STA). Later I wanted to integrate ESPNOW into it.
First "strange" thing is, if the sender would be another ESP32, it works well if its defined as STA, but as the sender is an ESP8266, to get it working, it must be configured as WIFI_AP_STA. I didnt found any reason for that... I have read that it might be becasue wifi might enter into energy save stage, which might stop transmisión if its STA, but configuring it as AP, force the micro to be always listening. I have checked if WiFi.setSleep(WIFI_PS_NONE) helpt, but it doens't. Any explanation/solution to keep STA mode?
So ok, I asume (without an understanding) that it must be WIFI_AP_STA. Its not needed to configure or bring up the AP (with Wifi.softAP()) to have EspNow working properly, which is nice, becasue I dont want another AP really active. Unfortunately, in my project, I need to configure the AP at the beginning of the code to really accept client connections, and then shut it down (if certain conditions), which keeps the softAP already configured. I thought the softAP, will lose all configurations once I switch to wifi.mode(WIFI_STA) and the turn it on again with wifi.mode(WIFI_AP_STA), but it brings up the network, which I would like to avoid. As workaround I could hide the SSID, but this is not a solution in reality. I have tried with softAPdisconnect() and enableAP(), but no success. So, how can I reset the AP configuration completly, once it has been already configured?
Any help will be very apreciated.
Thanks in advance.
potros
ESP32 + Wifi.Mode + ESPNow
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- 全国大学生物联网设计竞赛乐鑫答疑专区
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- 中文文档讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: No registered users and 62 guests
- All times are UTC
- Top
- Delete cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. ESP8266EX and ESP32 are some of our products.