real time monitor

This commit is contained in:
2025-02-08 22:16:43 -05:00
parent 6e6423b1bb
commit d27bfc9734

View File

@@ -52,18 +52,16 @@ void setup() {
rf95.setTxPower(23, false);
}
int16_t packetnum = 0;
void loop() {
// Transmit code
char radiopacket[7] = "";
itoa(packetnum++, radiopacket, 10);
char radiopacket[100] = "";
ultoa(millis(), radiopacket, 10);
Serial.print("Sending "); Serial.println(radiopacket);
rf95.send((uint8_t *)radiopacket, RH_RF95_MAX_MESSAGE_LEN);
rf95.waitPacketSent();
// Receiver code
while (!rf95.available()) {}
delay(100);
if (rf95.available()) {
// Should be a message for us now
uint8_t buf[RH_RF95_MAX_MESSAGE_LEN];