Hi Filipp
Thanks for the tip. And yes there was a space.
Ross
Thanks for the tip. And yes there was a space.
Ross
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menuinterval = 300;
timestamp = ExpandString("timestamp_%i",$node);
if (ReadPersistentStorage(timestamp) != "" ) {
if ((time() - ReadPersistentStorage(timestamp)) > interval) return true;
WritePersistentStorage(timestamp, NULL);
alarmkey = ExpandString("NODE_DOWN2_%i",$node);
alarm = FindAlarmByKey(alarmkey);
timer = ExpandString("nodetimer_%i",$node);
PostEvent($node,"CANCEL_TIMER",null,timer);
alarm->terminate();
return false;
}
interval = 300;
nodeId = d2x($node->id,8);
a = ("timestamp_0x".nodeId);
if (ReadPersistentStorage(a) != "" ) {
if ((time() - ReadPersistentStorage(a)) > interval) return true;
WritePersistentStorage(a, NULL);
alarm = FindAlarmByKey("NODE_DOWN2_0x".nodeId);
timer = ("nodetimer_0x".nodeId);
$event->setNamedParameter(timer, "");
alarm->resolve();
return false;
}