Skip to main content
2 of 2
Code formatting and fixed typos. Some issues may still remain (i.e. the "(ryltr998)")
Greenonline
  • 3.2k
  • 7
  • 37
  • 49

I am new to Lora module and ESP32 and only playing around for a week.

I have successfully sent AT commands to RYLR998 module via ESP32 and received messages via other RYLR998 connected to another computer via USB UART serial. You need use trim() before you send your string to Serial2.(ryltr998)

trim()
[StringObject Function]
Description
Get a version of the String with any leading and trailing whitespace removed. The trim() function modifies the String in place rather than returning a new one.

Syntax
myString.trim()