We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If the arduino receives an interrupt while sending, the transmission is cancelled abruptly.
I suggest continuing the sleep if the interrupt source was not interrupt_pin
I use following modification, but I won't make a PR of it since I consider it a hacky fix
void SFX_stop_sleep() { SFX_continue_sleep = false; } void SFX_continuable_sleep(uint32_t time) { SFX_continue_sleep = true; uint32_t ending = SFX_rtc.getEpoch() * 1000 + time; while (SFX_rtc.getEpoch() * 1000 < ending) { time = ending - SFX_rtc.getEpoch() * 1000; LowPower.sleep(time); if (!SFX_continue_sleep) return; } }
and following in SIGFOXClass::send
SIGFOXClass::send
LowPower.attachInterruptWakeup(interrupt_pin, SFX_stop_sleep, FALLING); SFX_continuable_sleep(timeout);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If the arduino receives an interrupt while sending, the transmission is cancelled abruptly.
I suggest continuing the sleep if the interrupt source was not interrupt_pin
I use following modification, but I won't make a PR of it since I consider it a hacky fix
and following in
SIGFOXClass::send
The text was updated successfully, but these errors were encountered: