Files
2018-01-03 14:18:06 +01:00

13 lines
387 B
Python

def receive(lora):
print("LoRa Receiver")
while True:
if lora.receivedPacket():
lora.blink_led()
payload = lora.read_payload()
try:
print("*** Received message ***\n{}".format(payload.decode()))
except Exception as e:
print(e)
print("with RSSI: {}\n".format(lora.packetRssi()))