Skip to content

Not sure if LMIC is responding to MAC request from gateway #742

Discussion options

You must be logged in to vote

For a variety of reasons, I've been reluctant to add an explicit API: you have to check two return values (is there a job scheduled, and if so how long it will be). This is even more trouble-prone, in my experience, than the current situation.

There's a very workable API, os_queryTimeCriticalJobs(), which tells you whether you can sleep for a given period of time. It's not ideal, but it's correct, and it's very hard to get the use of the API wrong. It can be used while I think about whether I want to provide yet another API that ties us to the current implementation, or replace the current implementation with something more suitable.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by chansheunglong
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #737 on May 31, 2021 04:14.