Subversion Repositories HomeAutomation

Rev

Rev 969 | Rev 974 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 969 Rev 972
Line 1... Line 1...
1
 
1
 
2
CanServices = new Array();
2
CanServices = new Array();
3
CanOfflineTimeoutId = null;
3
CanOfflineTimer = new Interval(offlineCheck, 10000);
4
 
4
 
5
// This is called when a message has been received from the can network
5
// This is called when a message has been received from the can network
6
function handleMessage(className, directionFlag, moduleName, moduleId, commandName, data)
6
function handleMessage(className, directionFlag, moduleName, moduleId, commandName, data)
7
{
7
{
8
    var canMessage = new CanMessage(className, directionFlag, moduleName, moduleId, commandName, eval("(" + data + ")"));
8
    var canMessage = new CanMessage(className, directionFlag, moduleName, moduleId, commandName, eval("(" + data + ")"));
Line 56... Line 56...
56
            canMessage.getDataString());
56
            canMessage.getDataString());
57
}
57
}
58
 
58
 
59
function startOfflineCheck()
59
function startOfflineCheck()
60
{
60
{
61
    CanOfflineTimeoutId = setInterval("offlineCheck();", 10000);
61
    CanOfflineTimer.start();
62
}
62
}
63
 
63
 
64
// This will be called at reqular intervals
64
// This will be called at reqular intervals
65
function offlineCheck()
65
function offlineCheck()
66
{
66
{