timestamp = now
Repeat
{
if message received or (millis - timestamp)>interval
{
send message
}
}
Yes, like that. I would add a "break;" after sending the message so the Repeat loop doesn't continue forever. ![]()
timestamp = now
Repeat
{
if message received or (millis - timestamp)>interval
{
send message
}
}
Yes, like that. I would add a "break;" after sending the message so the Repeat loop doesn't continue forever. ![]()