logo elektroda
logo elektroda
X
logo elektroda

ESP32 + IDF: No example for Station + SoftAP - do you know of any?

dondu 420 1
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 17968743
    dondu
    Moderator on vacation ...
    Hi,

    In the original ESP32 IDF environment (version Stable 3.2) in the /examples/wifi/getting_started folder there are examples for Station mode (WIFI_MODE_STA) and for Soft AP mode (WIFI_MODE_AP).

    There is unfortunately no example for Station+Soft AP mode (WIFI_MODE_APSTA).

    I have searched a lot, but have not found a working example. There are discussions, but no specifics.
    Where can such an example be found?
  • ADVERTISEMENT
  • #2 17968843
    khoam
    Level 42  
    dondu wrote:
    There is unfortunately no example for Station+Soft AP mode (WIFI_MODE_APSTA).
    .
    It is true. The only working recipe for such a situation that I have found is:

    Call esp_wifi_set_config() twice. Once for the settings for the station interface and a second time with the settings for the access point interface. .

    That is, as if there were two WiFi interfaces - one AP, the other STA.
ADVERTISEMENT