Erel, thank you, it works great! Made a little UDP server. In Station and Access Point mode. However, after a wifi.StartAccessPoint2(...) the AP mode cannot be switched off anymore. Only, via the Arduino IDE by setting a WiFi.mode(WIFI_STA) which terminates the mode WIFI_AP or WIFI_AP_STA. It looks as if the wifi configuration is saved in a reserved memory area. It is not removed after flashing a new program, without new mode/configuration settings. I noticed something similar with LUA-NodeMCU.
Something else, it is probably not possible to set the channel in AP mode? I used it with LUA-NodeMCU firmware, where a configuration structure can be specified: cfg={}, cfg.ssid="...", cfg.psw="...", cfg.channel=8 (1-14, 6 default), wifi.ap.config(cfg)
Something else, it is probably not possible to set the channel in AP mode? I used it with LUA-NodeMCU firmware, where a configuration structure can be specified: cfg={}, cfg.ssid="...", cfg.psw="...", cfg.channel=8 (1-14, 6 default), wifi.ap.config(cfg)