Hi. I have bypassed ESP8266 using arduino UNO, and I've managed to program ESP8266 directly using Arduino IDE. Now I need to send data to a server in my program, using AT commands.
Here's the wiring I have used:
ESP ......... Arduino UNO
RX => RX (port number 0)
TX => TX (port number 1)
GND => GND
CH_PD => 5V
VCC => 5V
GPIO0 => GND
I grounded GPIO0 so I can program ESP using Arduino IDE, and that is working successfully. The problem is, how do I send data to server using AT commands? Should I declare a new SoftwareSerial port and assign it to RX and TX of arduino? And then how should I send AT commands and test if it works.
Juraj:
If you uploaded a sketch into esp8266 it replaced the AT firmware. Use ESP8266WiFi library
So now I can't use AT commands, right? I need to upload my sketch to ESP8266, If I use ESP8266WiFi library, can I send data through WiFi (considering AT commands are not available)?
mta9896:
So now I can't use AT commands, right? I need to upload my sketch to ESP8266, If I use ESP8266WiFi library, can I send data through WiFi (considering AT commands are not available)?
the ESP8266WiFi has the same functions like the Arduino WiFi library (which is a clone of the Ethernet library)