1
Diff: radio_sx126x.cpp
- Revision:
- 7:ba81f66e56d1
- Parent:
- 5:ab124d3842a8
- Child:
- 11:5111788c4298
- Child:
- 14:94993ae5b164
--- a/radio_sx126x.cpp Tue Dec 04 15:22:54 2018 -0800 +++ b/radio_sx126x.cpp Wed Dec 05 15:04:48 2018 -0800 @@ -312,6 +312,14 @@ radio.xfer(OPCODE_SET_LORA_SYMBOL_TIMEOUT, 1, 0, &symbs); } +float Radio::GetRssiInst() +{ + uint8_t buf[8]; + + radio.xfer(OPCODE_GET_RSSIINST, 0, 2, buf); + return buf[1] / -2.0; +} + int Radio::Send(uint8_t size, timestamp_t maxListenTime, timestamp_t channelFreeTime, int rssiThresh) { uint8_t buf[8];