The answer I get on the serial monitor is a series of "2", but I never get a "1" to appear previously.
It's like skipping the Setup snippet and going straight to the Loop. This is so put what you put into setup (how to configure the Wi-Fi network and another series of initializations ...)
What I have tried:
-install arduino IDE and install it again
-Update Java
-Try another ESP-01 and another CH340G
-Flash the ESP-01 to origin
Uninstall the ESP8266 card in the IDE and install it again. Try older versions (2.6.0 and 2.6.2 instead of the current 2.6.3)
I would wager money that the issue is a quirk of the ESP8266.
ESP8266 has a ton of weird quirks, it's on-board peripherals are.... weird, I think as a consequence of the devices really not being meant as anything other than a really cheap serial gateway - the other features were almost an afterthought to my mind, but then they released the SDK, and people went absolutely crazy with it, and the chip became one of the most popular microcontroller boards by virtue of having native wifi and costing less than a cup of coffee on a breakout board with usb serial adapter - like, it doesn't have some features we take for granted (hardware output compare?! even their I2C implementation is apparently software I2C under the hood, or so I have been told), it will WDT reset itself if you don't yeild control to the wifi hardware. But on the third hand, it's pretty fast, and has truly massive flash options, OTA bootloaders, and that enables a lot of cool stuff.
After the runaway sucess of ESP8266, they did the ESP32, which, looking at the feature list, was designed in large part by looking at what people wished the ESP8266 would do. Dual core to offload the wifi tasks to, much better peripherals... even option for PSRAM to make a near infinite amount (of somewhat slower, because it has to go out on SPI to get it) ram!