Possibility to store or print whole lora packet before sending

Hey there,

I’m using the MCCI LoRaWAN LMIC Library to communicate to The Things Network. Everything is working fine, I’m just searching for any tips/approaches to store or print the whole lora packet right before transmission. I am aiming to “copy” a complete and functioning packet, to test another application.

I am grateful for any ideas.

Best regards,

Hi, welcome.

Do you want it after encryption? You can use the event EV_TXSTART for that, and copy LMIC.frame[0:LMIC.dataLen-1] to your buffer.

If you want before encryption, there’s no good way to do that unless you edit the code.

Best regards,