Ls,
What is the (minimum) frequency I should use rf12easyPoll() in my software ?
What is the downside if it isn't called regularly ?
-ben
This forum has moved to forum.jeelabs.net - this read-only archive is for reference only!
Ls,
What is the (minimum) frequency I should use rf12easyPoll() in my software ?
What is the downside if it isn't called regularly ?
-ben
Not sure - I think the main type of event it needs to catch is incoming ack packets. This isn't as critical as acks the other way, i.e. letting some other node know that a packet has been received - which isn't used with the easy xmit mechanism. The other task I can think of is detecting packet loss and sending retries.
Generally speaking, packet events take place in the range of milliseconds so I'd say poll at least every few milliseconds, perhaps 100 times per second as a rule of thumb.
Right now, maybe it will still work with fewer calls - maybe even once a second. But when more smarts get added to the RF12 driver, polling will probably need to be done more frequently.
It's ok to poll constantly. Or to poll in several places in your code, if you have some long-running loops.