Add isChannelActive() function to radio interface

This commit is contained in:
GUVWAF
2022-04-20 20:04:44 +02:00
parent 616c7d7b0e
commit 6d01f9aa89
4 changed files with 42 additions and 0 deletions

View File

@@ -40,6 +40,9 @@ class RF95Interface : public RadioLibInterface
*/
virtual void enableInterrupt(void (*callback)()) { lora->setDio0Action(callback); }
/** can we detect a LoRa preamble on the current channel? */
virtual bool isChannelActive() override;
/** are we actively receiving a packet (only called during receiving state) */
virtual bool isActivelyReceiving() override;