Site icon Renzo Mischianti

E220 LoRa Receive-Intervall and MycroPython and Arduino Env communication (UnicodeError:)

Hello, I use the following to receive data:

while True:
    if lora.available() > 0:
       code, value = lora.receive_message()
       print(ResponseStatusCode.get_description(code))

       print(value)
       time.sleep(2)
My question is, what is the time.sleep(2) for? I have noticed that if I send data within 2sec, then I get an error message in the Thonny IDE or the data is lost. And what happens if several transmitters send data at the same time? Kind regards, woto
Exit mobile version