This commit is contained in:
richonguzman 2025-04-24 09:44:57 -04:00
parent e689bb592c
commit 4f9eac9e5c
44 changed files with 184 additions and 57 deletions

View file

@ -155,9 +155,20 @@ namespace LoRa_Utils {
}
}
void startReceive() {
/*void startReceive() {
radio.startReceive();
}
}*/
/*String receiveFromSleep() {
String packet = "";
int state = radio.readData(packet);
if (state == RADIOLIB_ERR_NONE) {
//
} else {
packet = "";
}
return packet;
}*/
String receivePacket() {
String packet = "";
@ -219,6 +230,10 @@ namespace LoRa_Utils {
return packet;
}
void wakeRadio() {
radio.startReceive();
}
void sleepRadio() {
radio.sleep();
}