LowPowerLab Forum

Hardware support => Moteino => Topic started by: darkcurrent on August 19, 2015, 11:57:11 AM

Title: Question about node.ino code
Post by: darkcurrent on August 19, 2015, 11:57:11 AM
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 ?
Title: Re: Question about node.ino code
Post by: Felix on August 19, 2015, 12:09:02 PM
That's a way to determine when to send a package - ie only once per TRANSMITPERIOD.