Hello,
I am on a NRF9160-DK and I am using SDK 1.3.0
I am working on the AWS_FOTA project.
I'm trying to configure the sending of a message in MQTT when pressing a button.
However, I ran into a problem with the poll which causes the processor to sleep. When I press a button, the interrupt is triggered but does not allow you to get out of the poll. So when I try to verify that the press lasts more than 500ms, the processor in the main remains in the poll and makes the verification impossible.
Eventually I would also like to manage interrupts by timer but also by arrival of GPS frame.
Is poll the right solution or is there a way out of this during an interruption? Can I set it to react to the button or to a GPS frame? Is there another solution than the poll which would remain interesting on the energy plan?
Thank you in advance for your help,
best regards,
lecozahu