diff --git a/API.md b/API.md index 3c52e38..5f7563e 100644 --- a/API.md +++ b/API.md @@ -94,7 +94,7 @@ Returns the packet size or `0` if no packet was received. ### Packet RSSI ```arduino -int rssi = LoRa.packetRSSI(); +int rssi = LoRa.packetRssi(); ``` Returns the RSSI of the received packet. diff --git a/examples/LoRaReceiver/LoRaReceiver.ino b/examples/LoRaReceiver/LoRaReceiver.ino index aa7af1d..ccbb453 100644 --- a/examples/LoRaReceiver/LoRaReceiver.ino +++ b/examples/LoRaReceiver/LoRaReceiver.ino @@ -27,6 +27,6 @@ void loop() { // print RSSI of packet Serial.print("' with RSSI "); - Serial.println(LoRa.packetRSSI()); + Serial.println(LoRa.packetRssi()); } } diff --git a/keywords.txt b/keywords.txt index c29dd03..2379223 100644 --- a/keywords.txt +++ b/keywords.txt @@ -19,7 +19,7 @@ beginPacket KEYWORD2 endPacket KEYWORD2 parsePacket KEYWORD2 -packetRSSI KEYWORD2 +packetRssi KEYWORD2 write KEYWORD2 diff --git a/src/LoRa.cpp b/src/LoRa.cpp index 0c3b9b5..41e63ef 100644 --- a/src/LoRa.cpp +++ b/src/LoRa.cpp @@ -154,7 +154,7 @@ int LoRaClass::parsePacket() return packetLength; } -int LoRaClass::packetRSSI() +int LoRaClass::packetRssi() { return (readRegister(REG_PKT_RSSI_VALUE) - 164); } diff --git a/src/LoRa.h b/src/LoRa.h index 1d7e760..f3e8072 100644 --- a/src/LoRa.h +++ b/src/LoRa.h @@ -15,7 +15,7 @@ public: int endPacket(); int parsePacket(); - int packetRSSI(); + int packetRssi(); // from Print virtual size_t write(uint8_t byte);