diff --git a/receive-arduino/receive-arduino.ino b/receive-arduino/receive-arduino.ino new file mode 100644 index 0000000..23bf03b --- /dev/null +++ b/receive-arduino/receive-arduino.ino @@ -0,0 +1,23 @@ +#include + +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; + } + } +}