Downlink to LoPy4
-
Does anyone have a working example of a LoPy4 receiving downlink messages from the loraserver.io network server?
I have tried the OTAA examples on Github and the different OTAA example in the online documentation but only ever see b'' printed in Atom.
I am using MQTT to send a short Base64 message to the server, using confirmed data and fport2 and a multi-channel gateway.
The LoPy joins the network OK and sends uplink messages.
Using the same server, gateway and MQTT code format I can send downlinks to other sensors so I know that these components are working ok.
Thanks.
-
Further to my previous post, the issue would appear to be that the LoPy4 clears the downlink message queue when it performs an OTAA network join. Any downlink messages that were sent before the join are received but not printed. Messages sent after the join are received and printed OK.
This seems to be why any of the online OTAA code samples don't display downlink messages (they print out b' ' instead of the received data).
-
@31warren Please paste your code? Do you use
lora.nvram_save()andlora.nvram_restore()methods? Which f/w are you using?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login