Subversion Repositories HomeAutomation

Rev

Rev 1060 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1060 Rev 1061
Line 18... Line 18...
18
    }*/
18
    }*/
19
   
19
   
20
    this.CanService.prototype.canMessageHandler.call(this, canMessage);
20
    this.CanService.prototype.canMessageHandler.call(this, canMessage);
21
}
21
}
22
 
22
 
23
irTransmit.prototype.sendClick = function(remoteName, buttonName)
23
irTransmit.prototype.sendClick = function(remoteName, buttonName, time)
24
{
24
{
25
    this.sendButton(remoteName, buttonName, true);
25
    this.sendButton(remoteName, buttonName, true);
-
 
26
   
-
 
27
    if (time)
-
 
28
    {
-
 
29
        sleep(time);
-
 
30
    }
-
 
31
    else
-
 
32
    {
26
    sleep(50000);
33
        sleep(50000);
-
 
34
    }
-
 
35
   
27
    this.sendButton(remoteName, buttonName, false);
36
    this.sendButton(remoteName, buttonName, false);
28
}
37
}
29
 
38
 
30
irTransmit.prototype.sendButton = function(remoteName, buttonName, down)
39
irTransmit.prototype.sendButton = function(remoteName, buttonName, down)
31
{
40
{