Author Topic: readRSSI function in library  (Read 881 times)

gussabina

  • NewMember
  • *
  • Posts: 42
  • Country: us
readRSSI function in library
« on: December 12, 2016, 07:16:34 PM »
Hello All:

I'm trying to understand the RFM69 library and I see there is a call for a readRSSI(bool forceTrigger) function, which when called with true (forceTrigger), it mainly starts a RSSI measuring.

Looking at the Datasheet, there is a mention for the corresponding registers but it's not clear to me, when this is really needed.
In Packet mode, is this automatic when the preamble is detected? When should we use this function with the forceTrigger option set?

Thanks
Gus

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: readRSSI function in library
« Reply #1 on: December 12, 2016, 07:22:24 PM »
The function simply reads the RSSI register. If you pass force=true then it triggers a RSSI sampling before reading it.
If you want to dig more for the conditions and RSSI mechanism please see the datasheet.