Subversion Repositories HomeAutomation

Rev

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

Rev 986 Rev 997
Line 3... Line 3...
3
CanServices = new Array();
3
CanServices = new Array();
4
CanOfflineTimer = new Interval(offlineCheck, 10000);
4
CanOfflineTimer = new Interval(offlineCheck, 10000);
5
 
5
 
6
function handleNMTMessage(className, commandName, data)
6
function handleNMTMessage(className, commandName, data)
7
{
7
{
8
    var canMessage = new CanNMTMessage(className, commandName, eval("(" + data + ")"));
8
    var canMessage = new CanNMTMessage(className, commandName, data);
9
 
9
 
10
    switch (canMessage.getCommandName())
10
    switch (canMessage.getCommandName())
11
    {
11
    {
12
    case "Reset":
12
    case "Reset":
13
    break;
13
    break;
Line 63... Line 63...
63
}
63
}
64
 
64
 
65
// This is called when a message has been received from the can network
65
// This is called when a message has been received from the can network
66
function handleMessage(className, directionFlag, moduleName, moduleId, commandName, data)
66
function handleMessage(className, directionFlag, moduleName, moduleId, commandName, data)
67
{
67
{
68
    var canMessage = new CanMessage(className, directionFlag, moduleName, moduleId, commandName, eval("(" + data + ")"));
68
    var canMessage = new CanMessage(className, directionFlag, moduleName, moduleId, commandName, data);
69
   
69
 
70
    var fullId = canMessage.getModuleName() + canMessage.getModuleId();
70
    var fullId = canMessage.getModuleName() + canMessage.getModuleId();
71
 
71
 
72
    if (canMessage.getCommandName() == "List" && canMessage.getDirectionFlag() == "From_Owner")
72
    if (canMessage.getCommandName() == "List" && canMessage.getDirectionFlag() == "From_Owner")
73
    {
73
    {