micropython/lora, how to do TX/RX switching?? #13262
Replies: 3 comments 4 replies
-
Daves did you try with fix transmission monitoring and then filter on received address ? |
Beta Was this translation helpful? Give feedback.
-
I would like to send a "reliable_delivery" response when I get a message in a receive callback(). It seems that when you register a Doesn't return, but continues to receive messages: def my_rx_irq(receiver):
my_data = []
# With wait=True, this function blocks until something is received and always
# returns non-None
sender_id, data = receiver.recv(wait=True)
data = data.decode('utf-8')
my_data = data.split(',')
print (f'Received msg: {my_data[0]}\n') |
Beta Was this translation helpful? Give feedback.
-
Gave-up and moved to using the "low-level API" |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have separate TX and RX working on two devices. Now, I am testing running TX and RX on both devices and running into a problem.
It appears that once you call
receiver = Receiver(modem)
then you just can't callsender = Sender(modem, DEVICE_ID)
or you are toldRuntimeError: Receiving
I looked about for a
modem.deinit()
and don't see anything.How would one properly switch between TX and RX?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions