Question about node.ino code

Started by darkcurrent, August 19, 2015, 11:57:11 AM

darkcurrent

Felix,

I don't understand the following lines that are part of your "node.ino" code:

int currPeriod = millis()/TRANSMITPERIOD;
  if (currPeriod != lastPeriod)
  {
    lastPeriod=currPeriod;


Could you explain this to me ?

Felix

That's a way to determine when to send a package - ie only once per TRANSMITPERIOD.