Poll for packets

This commit is contained in:
Adam Novak 2022-02-16 21:02:49 -05:00
parent 910b8b0821
commit 15d1cdc526
3 changed files with 44 additions and 19 deletions

2
LoRa.h
View file

@ -76,6 +76,7 @@ public:
virtual int peek();
virtual void flush();
void pollReceive();
void onReceive(void(*callback)(int));
void receive(int size = 0);
@ -115,6 +116,7 @@ private:
void implicitHeaderMode();
void handleDio0Rise();
void handleRx();
uint8_t readRegister(uint8_t address);
void writeRegister(uint8_t address, uint8_t value);