I’m using RAK3172 for my project (in C for STM32WLE5) and I need to check when the module can send a packet. I use IRQ_PREAMBLE_DETECTED in the interrupt to check for free airtime. Data size 10–128 bytes.
Is the correct way to check if data can be sent?
I also have a queue in my device where all the commands to be sent are added with a pause between them - 500 ms.
How to check when the device will be able to send the next message on the air?