I have a new question that you can help me.
I have a low power code that has 1 GPIO pin from RAK4631 attached to a Interrupt Pin from RAK1904 acelerometer (LIS3DH from ST). The acelerometer activates INT pin when feels movement in a previously configured time and force and wake up the RAK4631 to send Lora packets.
The problems it’s that if i want to send Rx packet (from Chirpstack to Wisblock sensors box) i lost some packets if the acelerometer detects two consecutive movements.
I tried to detach the pin interrupt inside the ISR and works better to don’t interrupt the loop process while it’s awake. But i still losing some packets when i recieve two consecutive movements because in the end of the loop i need to re-attach the interrupt pin to go to sleep again.
Do you recommend some way to make sure that the all Rx packets (chirpstack to wisblock sensors box) are effectively delivered?
I know that exists the lmh_send_blocking() command but my code it’s not blocking and i don’t know if exits a more effective way to achieve this and if the lmh_send_blocking() will solve my issue.