show received raw beacons

pull/5/head
Christian OE3CJB Bauer 2020-02-02 21:40:08 +01:00
rodzic e0b53577fd
commit ef3c3a22d4
1 zmienionych plików z 11 dodań i 3 usunięć

Wyświetl plik

@ -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);
} }
} }