I am simply using the following code

void setup() {
  // put your setup code here, to run once:
  // set the data rate for the HardwareSerial port

void loop() {
  while (Serial2.available() > 0)

the Connection is as follows pin 16(D27) of esp32 - > Tx of Neo6M pin 17(D14) of esp32 - > Rx of Neo6M

Now I am not getting any data in the serial monitor. The same module works with arduino with software serial. I am completely new in this thing and office is keep asking about the progess.

  • What exact ESP32 board do you have, and why have you tagged the question "Arduino UNO"? Is there an Uno in the mix as well?
    – Majenko
    Dec 4, 2019 at 10:53
  • I am using esp32 dev module. I tagged uno as the same pattern worked in uno. No uno is associated. so let me remove it. this one I am using : lastminuteengineers.com/wp-content/uploads/2018/08/…
    – sdebarun
    Dec 4, 2019 at 10:59
  • The default baud rate for the Neo-6M is 9600, not 115200. Have you reconfigured it to work at 115200 baud?
    – Majenko
    Dec 4, 2019 at 11:02
  • Did not noticed that. But I just modified the baud rate and still nothing. current baud rate is 9600
    – sdebarun
    Dec 4, 2019 at 11:08
  • The pins you are using are the ones actually labelled TX2 and RX2?
    – Majenko
    Dec 4, 2019 at 11:12


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.