Open
Description
In code, you have timeout set for 10.000 ms or 60.000ms but in the loop you have 100ms loop
and you only divide timeout per 10. So your timeout is 10x what is needed
for (i = 0; i < timeout/10; i++) <= This is a 10ms step ... not 100ms
{
if (digitalRead(interrupt_pin) == 0) {
status();
ret = statusCode(SIGFOX);
break;
} else {
// THIS IS A 100ms loop
digitalWrite(led_pin, HIGH);
delay(50);
digitalWrite(led_pin, LOW);
delay(50);
}
}