I have changed my code
I’m afraid it’s time for you to search in this forum looking for something missing in your set-up, code or whatever…
There’re several posts with the same issue than yours. Have a look!
Double check that you have the correct physical wiring TX on MEGA going to RX on ESP and vice versa… also be aware that the MEGA outputs 5v signal on it’s TX (to the 3.3v tolerant RX on the ESP)… So you need a resistor, voltage divider or level convertor, otherwise you will eventually kill your ESP.
Also… there is a possibility that you have some library corruption going on here… that is NOT (EDIT - big misread on my side… just ignore ) the correct message for 0.4.8. Perhaps completely remove ALL Blynk libraries and reinstall them manually as directed.
http://help.blynk.cc/getting-started-library-auth-token-code-examples/getting-started
http://help.blynk.cc/getting-started-library-auth-token-code-examples/how-to-install-blynk-library-for-arduino
The Schematic says the ESP is connected to D16 and D17
In schematic we trust?? DOUBLECHECK your own work… swap the pins (if able), study how the MEGA has multiple Serial ports… learn…
You are basically hacking a ready made product (https://www.digital-loggers.com/)… so some in-depth learning is required on your side.
https://store.arduino.cc/usa/arduino-mega-2560-rev3
Serial: 0 (RX) and 1 (TX); Serial 1: 19 (RX) and 18 (TX); Serial 2: 17 (RX) and 16 (TX); Serial 3: 15 (RX) and 14 (TX). Used to receive (RX) and transmit (TX) TTL serial data. Pins 0 and 1 are also connected to the corresponding pins of the ATmega16U2 USB-to-TTL Serial chip.
Because you are dealing with what might be a hardwired setup… perhaps focus on the software side; If you can access the correct pins to program the ESP, then you may have to reflash the ESP to a newer AT based firmware and properly set up your BAUD rates to something closer to standard speeds, i.e. 115200 for UART based Serial.
This might help:
http://help.blynk.cc/how-to-connect-different-hardware-with-blynk/arduino/esp8266-with-at-firmware
I reinstalled the library. and I still get . ESP is not responding, This is not the correct error from v0.4.8?
So sorry… brain fart on my side I was focused on your OP message and was just cutting and pasting without reading
Well… at least you know you have a clean library install now
I think I’d go back to basics and use a simple bit of Arduino code that sends an AT command to the ESP and echos the response back to the serial monitor. Once you’ve tweaked that to get an OK response from the ESP then you’ll know which pins are being used by the ESP and what baud rate is being used for Arduino to ESP communication.
Pete.
SOLVED!
I should pay more attention!, I found that I was not enabling the ESP, my code was missing.
void setup()
{
// Debug console
PLDuino::init();
PLDuino::enableESP();
Thanks everyone for your help. My Plduino is connected to Blynk via the ESP8266.