long previousMillis = 0; // will store last time something happened
long interval = 5000; // interval at which to blink (milliseconds)
void loop()
{
unsigned long currentMillis = millis();
if(currentMillis - previousMillis > interval) {
// save the last time something happened
previousMillis = currentMillis;
Insert your code here...
}
}
Note millis() does not work if you are using gw.sleep()
@Pidde probably, but not in the MySensors library. You might have better chance in a more general diy electronics or a raspberry pi-oriented forum.
With that said, there are a lot of tinkerers in this forum so maybe someone will chip in.
@Dirk_H
I use LiFe batteries in my battery sensors. they are a bit oversized, but they work just fine.
And because of the lower operating voltage I don´t need any type of voltage regulation
@hek said:
@joshmosh said:
Would
gw.begin(incomingMsg, MY_NODEID, true)
turn this node into a working repeater ?
Yes, this enables the repeater feature.
OK,thank you. This will save me an additional node..
Cheers
Josh
@alexsh1 if you haven't already, remove the Arduino bootloader. Iirc, it adds about 2 seconds.
Set static parent (MY_PARENT_NODE_ID, MY_PARENT_NODE_IS_STATIC) and maybe MY_PASSIVE_NODE.