Although it works, any reason Rui decided to use “rrsi” rather than “rssi” as a variable name in this code?
int rrsi = LoRa.packetRssi();
Serial.print(” with RSSI “);
Serial.println(rrsi);
display.setCursor(0,20);
display.print(“RSSI: “);
display.setCursor(30,20);
display.print(rrsi);
display.display();
1 Answers
Hello Jack! Thanks for letting me know, it was a typo in the variable.
I’ve updated the code and changed it to rssi: https://github.com/RuiSantosdotme/ESP32-Course/blob/master/code/LoRa_RFM95/LoRa_Receiver/LoRa_Receiver.ino
//print RSSI of packet int rssi = LoRa.packetRssi(); Serial.print(" with RSSI "); Serial.println(rssi); display.setCursor(0,20); display.print("RSSI: "); display.setCursor(30,20); display.print(rssi); display.display();
Regards,
Rui – ESP32 LoRa Guide