The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

RE: VB Updates


  • Subject: RE: VB Updates
  • From: Tony T
  • Date: Sun, 09 Feb 2003 15:13:00 +0000

> Can you detail, so that i can merge into homebrew sw

The changes are to the heartbeat intialisation routine, that was at the end
of my main form_load sub

The changed line and new line (the last line) are marked ***

' intialise heartbeat
If xPL_Interval < 5 Then xPL_Interval = 5 ' xpl minimum
If xPL_Interval > 30 Then xPL_Interval = 30 ' xpl maximum
*** xPL_Timer = xPL_Interval - 1
tmrxPL.Enabled = False ' hold heartbeat
tmrxPL.Interval = 60000
Call tmrxPL_Timer
tmrxPL.Enabled = True ' start real heartbeat
*** xPL_Timer = xPL_Interval - 1

This causes a heartbeat to be sent immediately on launch,
A second after 1 minute (in case hub had not loaded)
Then it falls back to 5 minutes (or 5 to 30 depending on set interval)

It's worth noting that if the initial heartbeat class is 'config.' then the
Heartbeat is sent at one minute intervals until a configuration is
received.

Tony






xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.