cocomobile-arduino/receive-arduino/receive-arduino.ino
2026-05-03 17:20:12 +02:00

24 lines
321 B
C++

#include <SoftwareSerial.h>
SoftwareSerial lora(8, 9); // RX, TX
String line;
void setup() {
Serial.begin(115200);
lora.begin(9600);
}
void loop() {
while (lora.available()) {
char c = lora.read();
if (c == '\n') {
Serial.println(line);
line = "";
} else {
line += c;
}
}
}