I am creating a program where esp32 connects to wifi in STA mode and receives or sends data to the MQTT broker, also esp32 creates an access point in softAP mode where the user should connect to it and view the data via the web interface. ESP32 can work in STA+SoftAP mode - I modified the ESP_CAL_WIFI file - the program works partially - it receives and transmits data, connects devices - but does not create a web page.
If I do it in parts or ESP32 works with AP mode or STA mode, then everything works. But it needs to work in APSTA mode, especially since the ESP32 can do this according to the datasheet.
No work component Webserver if ESP32 work in APSTA mode
-
- Posts: 16
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 01, 2021 7:22 am
- Has thanked: 1 time
No work component Webserver if ESP32 work in APSTA mode
- Attachments
-
- esp32_2wlan.fcfx
- (37 KiB) Downloaded 10 times
-
- ESP_CAL_WIFI.c
- (15.67 KiB) Downloaded 9 times
-
- Broker.JPG (57.88 KiB) Viewed 1025 times
Re: No work component Webserver if ESP32 work in APSTA mode
Didn't let me attach all the files
- Attachments
-
- UART_Log.txt
- (5.99 KiB) Downloaded 15 times
-
- esp32_2wlan.msg.txt
- (15.54 KiB) Downloaded 12 times
-
- Matrix Staff
- Posts: 1465
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 204 times
- Been thanked: 347 times
Re: No work component Webserver if ESP32 work in APSTA mode
Sorry for the late reply. This one has slipped through the net. But it could be a tricky problem to fix. I (personally) have no experience in using APSTA mode and it will take a long time for me to understand your project to the level where I can help effectively.
You say the web page is served ok when just using one of the modes, but not when using both. Is there any log file you can create/provide to help explain why web page creation is failing? For example, is there a specific call in your code or your modified CAL file that can pinpoint where (and perhaps why) the web page is not being created?
There will be other users on this forum who know the ESP32 well and hopefully they will have ideas of what the problem might be.
You say the web page is served ok when just using one of the modes, but not when using both. Is there any log file you can create/provide to help explain why web page creation is failing? For example, is there a specific call in your code or your modified CAL file that can pinpoint where (and perhaps why) the web page is not being created?
There will be other users on this forum who know the ESP32 well and hopefully they will have ideas of what the problem might be.
-
- Valued Contributor
- Posts: 1453
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 135 times
- Been thanked: 707 times
Re: No work component Webserver if ESP32 work in APSTA mode
Is there a sample program in the espressif framework - if so, it might be possible to leverage that to do what you want. Or see https://github.com/nopnop2002/esp-idf-wifi-apsta for example.
Most (all?) of these samples require callbacks - however they are fairly easy to implement in Flowcode (just pass FCM_MacroName)
Martin
Most (all?) of these samples require callbacks - however they are fairly easy to implement in Flowcode (just pass FCM_MacroName)
Martin