Testing ESP-01s wifi module
Maybe this has been done 100 times before?
Anyway, getting feet wet with the dirt cheap ESP-01s wifi modules...
This example will let you type "AT" in PST and get "OK" back from ESP-01a (hey it's a start!)
One hurdle was that ESP wants CR+LF, so have to manually add LF when CR input detected from PST.
Besides power, just need to hook up RX, TX, and PD pins.
Have it working in putty too. That may be useful in future...
One issue seems to be a relatively small receive buffer in fullduplex serial.
Going to switch now to a 4-port serial driver (found in OBEX 2549) to fix that...

Comments
This version is better... Uses 4-port serial object from Tracy Allen (OBEX 2523) so not wasting cogs...
Note: The one in OBEX 2549, didn't work here, not sure why...
Did copy some functions like DEC from 2549 version to 2523 version though.
Also, increased RX buffer for output from WiFi module in the driver.
The increased buffer allows the "AT+GMR" command to give good data. Seems was overloading RX buffer before.
This works with PST after code adds LF when sees CR in input from terminal.
tying in "AT" should reply with "OK" and "AT+GMR" gives info on firmware...
This is on my to-do list:
Well, maybe not 100, but a few -- and they're always fun and useful. I started doing serial bridges like this for configuring Bluetooth radios. With BT modules I found that many devices had internal timeouts so I couldn't type the commands fast enough to enter properly. What I did is add an command input method that buffers what the user enters (with backspace to fix typos), changes characters to uppercase (required by ESP-01), and then sends it all at once. Here's the program connected to an ESP-01.
For new devices I added a constant called SHOW_DETAILS that will show the raw return packet
This shows that the ESP-01 does two CrLf sequences before "OK" which is interesting.
I've tested the program in Propeller Tool and Spin Tools.
Note that I'm using a new ESP-01S module and just let the other pins float; seemed to work, but I will research what to do as I see Ray's version does connect to them.
Ai told me to hook up PD pin... Maybe don't have to, don't know... Mine is also ESP-01S from Amazon:
https://www.amazon.com/dp/B08B3VZS4N?th=1