show received raw beacons
rodzic
e0b53577fd
commit
ef3c3a22d4
|
@ -181,6 +181,7 @@ boolean wx;
|
||||||
|
|
||||||
//byte arrays
|
//byte arrays
|
||||||
byte lora_TXBUFF[128]; //buffer for packet to send
|
byte lora_TXBUFF[128]; //buffer for packet to send
|
||||||
|
byte lora_RXBUFF[128]; //buffer for packet to send
|
||||||
//byte Variables
|
//byte Variables
|
||||||
byte lora_TXStart; //start of packet data in TXbuff
|
byte lora_TXStart; //start of packet data in TXbuff
|
||||||
byte lora_TXEnd; //end of packet data in TXbuff
|
byte lora_TXEnd; //end of packet data in TXbuff
|
||||||
|
@ -504,7 +505,14 @@ void loop() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rf95.waitAvailableTimeout(100)) {
|
if (rf95.waitAvailableTimeout(100)) {
|
||||||
if (rf95.recvAPRS(buf, &len)) {
|
if (rf95.recvAPRS(lora_RXBUFF, &len)) {
|
||||||
|
Serial.print("((RX)): ");
|
||||||
|
InputString = "";
|
||||||
|
for ( int i=0 ; i < len ; i++) {
|
||||||
|
InputString += (char) lora_RXBUFF[i];
|
||||||
|
}
|
||||||
|
Serial.println(InputString);
|
||||||
|
writedisplaytext(" ((RX))","",InputString,"","","",2000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue