treii28 wrote:asking 'can you do this' in the context of the AT command set and the answer being 'no, not without reprogramming the firmware'
Of course, this can not be done with AT firmware, you have to write your own code. Since we are here is ArduinoESP sub-forum, AT commands are not exist anymore after uploading any sketch.
When running WiFi.softAP(), you simply need to add WiFi.mode(WIFI_AP_STA) before.
when running WiFi.begin(), you simply need to add WiFi.mode(WIFI_STA) before.
For some examples, look at https://github.com/esp8266/Arduino/tree ... i/examples
Even if those doesn't explicitly use WiFi.mode(WIFI_AP_STA) and WiFi.mode(WIFI_STA), simply add them.