Skip to main content
Minor clarification
Source Link
Greenonline
  • 3.2k
  • 7
  • 37
  • 49

YouAs shown in the Fritzing diagram, you have connected the ESP8266 to the Mega's Serial1 pins (18 and 19), but in the program, you try to interact with Serial2 (pins 16 an 17). For this to work, your wiring and your program must match.

You have connected the ESP8266 to the Mega's Serial1 pins, but in the program, you try to interact with Serial2. For this to work, your wiring and your program must match.

As shown in the Fritzing diagram, you have connected the ESP8266 to the Mega's Serial1 pins (18 and 19), but in the program, you try to interact with Serial2 (pins 16 an 17). For this to work, your wiring and your program must match.

State things explicitly for benefit of the unimaginative
Source Link
Chris Stratton
  • 5.4k
  • 21
  • 40

You have connected the ESP8266 to serial1 andthe Mega's Serial1 pins, but in the program, you have calledtry to interact with Serial2. For this to work, your wiring and your program must match.

You have connected to serial1 and in the program, you have called Serial2.

You have connected the ESP8266 to the Mega's Serial1 pins, but in the program, you try to interact with Serial2. For this to work, your wiring and your program must match.

Source Link

You have connected to serial1 and in the program, you have called Serial2.