1
0
mirror of https://github.com/sandeepmistry/arduino-LoRa.git synced 2025-04-19 13:02:14 +03:00

Rename packetRSSI to packetRSSI

This commit is contained in:
Sandeep Mistry 2016-08-21 14:35:33 -04:00
parent ecbb114c42
commit 1e8f3835a1
5 changed files with 5 additions and 5 deletions

2
API.md
View File

@ -94,7 +94,7 @@ Returns the packet size or `0` if no packet was received.
### Packet RSSI ### Packet RSSI
```arduino ```arduino
int rssi = LoRa.packetRSSI(); int rssi = LoRa.packetRssi();
``` ```
Returns the RSSI of the received packet. Returns the RSSI of the received packet.

View File

@ -27,6 +27,6 @@ void loop() {
// print RSSI of packet // print RSSI of packet
Serial.print("' with RSSI "); Serial.print("' with RSSI ");
Serial.println(LoRa.packetRSSI()); Serial.println(LoRa.packetRssi());
} }
} }

View File

@ -19,7 +19,7 @@ beginPacket KEYWORD2
endPacket KEYWORD2 endPacket KEYWORD2
parsePacket KEYWORD2 parsePacket KEYWORD2
packetRSSI KEYWORD2 packetRssi KEYWORD2
write KEYWORD2 write KEYWORD2

View File

@ -154,7 +154,7 @@ int LoRaClass::parsePacket()
return packetLength; return packetLength;
} }
int LoRaClass::packetRSSI() int LoRaClass::packetRssi()
{ {
return (readRegister(REG_PKT_RSSI_VALUE) - 164); return (readRegister(REG_PKT_RSSI_VALUE) - 164);
} }

View File

@ -15,7 +15,7 @@ public:
int endPacket(); int endPacket();
int parsePacket(); int parsePacket();
int packetRSSI(); int packetRssi();
// from Print // from Print
virtual size_t write(uint8_t byte); virtual size_t write(uint8_t byte);