You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SIM800L module and it run perfectly fine with SoftwareSerial. I need to expand I/O so I need to use HardwareSerial. Please teach me how to use HardwareSerial for this module.
Thank you so much.
The text was updated successfully, but these errors were encountered:
I made it work with HardwareSerial with ESP32 NodeMCU. Here is how:
1) You need to change Sim800l.h defines first, like that:
#define RX_PIN 16 // This goes to your RX on UART 2 port, acordding to your hardware (ESP in my case)
#define TX_PIN 17 // This goes to your TX on UART 2 port, acordding to your hardware (ESP in my case)
#define BAUD_RATE 9600
2) Now you need to change Sim800l.cpp global variable SoftwareSerial to HardwareSerial:
/* This goes in your global scope. Remember, we initialize with HardwareSerial object(2) because we are using UART 2 with pins RX2(GPIO 16) and TX2 (GPIO 17)*/
HardwareSerial SIM(2);
SIM800L module and it run perfectly fine with SoftwareSerial. I need to expand I/O so I need to use HardwareSerial. Please teach me how to use HardwareSerial for this module.
Thank you so much.
The text was updated successfully, but these errors were encountered: