Page 1 of 1

No work component Webserver if ESP32 work in APSTA mode

Posted: Sun Feb 09, 2025 6:06 pm
by vvvhydr
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.

Re: No work component Webserver if ESP32 work in APSTA mode

Posted: Sun Feb 09, 2025 6:07 pm
by vvvhydr
Didn't let me attach all the files

Re: No work component Webserver if ESP32 work in APSTA mode

Posted: Tue Apr 29, 2025 7:59 am
by vvvhydr
They responded quickly...

Re: No work component Webserver if ESP32 work in APSTA mode

Posted: Tue Apr 29, 2025 9:17 am
by Steve-Matrix
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.

Re: No work component Webserver if ESP32 work in APSTA mode

Posted: Tue Apr 29, 2025 11:32 am
by mnfisher
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