Added lora receiver
This commit is contained in:
8
esp32-lora/lora_receiver.py
Normal file
8
esp32-lora/lora_receiver.py
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
import serial
|
||||||
|
|
||||||
|
ser = serial.Serial('/dev/ttyUSB1', 57600, timeout=1)
|
||||||
|
|
||||||
|
while True:
|
||||||
|
line = ser.readline()
|
||||||
|
if line:
|
||||||
|
print("Received:", line.decode('utf-8', errors='ignore'))
|
||||||
Reference in New Issue
Block a user