This ESP-01, has been upgraded to AT firmware v1.1, using this firmware here.
We need to first connect the ESP-01 to the Arduino using this schematics below.
Code : Pastebin.
If you open serial monitor, you now can send AT command from it.
If you want to send serial command from your program to ESP directly, use mySerial.write(Serial.read());
.
Incoming Terms
- Arduino Esp 01 Softwareserial