mcci-catena / arduino-lorawan

User-friendly library for using arduino-lmic with The Things Network and other LoRaWAN® networks
MIT License
275 stars 54 forks source link

Get ack using TTN V3 #159

Closed mhmayyan closed 2 years ago

mhmayyan commented 3 years ago

Using TTN V2 , usually, I use the flags combination LMIC.txrxFlags & TXRX_ACK inside the function Arduino_LoRaWAN::ReceivePortBufferCbFn receiveMessage. If that combination is true then I can tell that I got ack. Now, however, on TTN V3 it seems I don't receive a downlink at all.

Any idea how I can get ack and receive downlink messages using TTN V3?

Thanks,

terrillmoore commented 3 years ago

This is because of issue #25. Try updating your arduino-lorawn to v0.9.0-pre12 -- you'll also have to update Catena-Arduino-Platform to v0.21.0-pre5. This will cause the Catena to properly save the 5-second downlink window setting that's communicated with a JoinAccept message.

Note that it will take 5 seconds to get a downlink, instead of 1.

mhmayyan commented 3 years ago

Thank you, Terry

It worked. I had also to update arduino-lmic to the latest pre-release

terrillmoore commented 3 years ago

Excellent. Closing issue.