You can chat about native SDK questions and issues here.

User avatar
By quackmore
#89797 yes, with some limitations

https://www.espressif.com/sites/default/files/documentation/2c-esp8266_non_os_sdk_api_reference_en.pdf

in APPENDIX A.4

Code: Select allA.4. ESP8266 SoftAP and Station Channel Configuration
Even though ESP8266 supports the SoftAP + Station mode, it is limited to only one
hardware channel.
In the SoftAP + Station mode, the ESP8266 SoftAP will adjust its channel configuration to
be the same as the ESP8266 Station.
This limitation may cause some inconveniences in the SoftAP + Station mode that users
need to pay special attention to, for example:
Case 1:
(1) When users connect the ESP8266 Station to a router (for example, channel 6),
(2) and sets the ESP8266 SoftAP through wifi_softap_set_config,
(3) if the value set is effective, the API will return true. However, the channel will be
automatically adjusted to channel 6 in order to be in line with the ESP8266 Station
interface. This is because there is only one hardware channel in this mode.
Case 2:
(1) If users set the channel of the ESP8266 SoftAP through wifi_softap_set_config (for
example, channel 5),
(2) other Stations will connect to the ESP8266 SoftAP.
(3) When the users connects the ESP8266 Station to a router (for example, channel 6),
(4) the ESP8266 SoftAP will adjust its channel to be the same as that of the ESP8266
Station (which is channel 6 in this case).
(5) As a result of the change of channel, the Station Wi-Fi connected to the ESP8266
SoftAP in Step Two will be disconnected.
Case 3:
(1) Other stations are connected to the ESP8266 SoftAP.
(2) If the ESP8266’s Station interface has been scanning or trying to connect to a target
router, the ESP8266 SoftAP’s connection may terminate.
(3) This is because the ESP8266 Station will try to find its target router in different channels,
which means it will keep changing channels, and as a result, the ESP8266 channel is
changing, too. Therefore, the ESP8266 SoftAP’s connection may terminate.
(4) In cases like this, users can set a timer to call wifi_station_disconnect to stop the
ESP8266 Station from continuously trying to connect to a router. Or use
wifi_station_set_reconnect_policy or wifi_station_set_auto_connect to disable
the ESP8266 Station from reconnecting to the router.