I've tried enabling the autorun file and fastboot option and the WiFI.sleep command in first line to preserve power as described in the help. After 15 seconds of sleep, the wifi turns on in AP mode without the awake or connect command. I tried the ESP-01S and D1 mini module, the result is the same.
Sample code:
Code: [Local Link Removed for Guests]
WIFI.SLEEP
i=1
DO WHILE 50>i
PAUSE 1000
print ".";
IF 0=i mod 10 print STR$(WIFI.MODE)+"-"+STR$(WIFI.STATUS)
i=i+1
LOOP
WIFI.AWAKE
PAUSE 1000
print STR$(WIFI.MODE)+"-"+STR$(WIFI.STATUS)
END
Annex WiFi 1.48
(C) ciccioCB 2023
Personal use only, commercial use strictly prohibited
2M module
start ad000 max size 339968
Number of program lines :16
Basic File Loaded: /prolog2.bas
Program Running
..........0-6
....
Switched to AP Mode AP_TEST
IP address: 192.168.1.12
......2-6
..........2-6
..........2-6
..........2-6
..........2-6
....ws[/ws][1][2] connect
......2-6
.........2-6
1-0
1-0
1-0
Program Ended