Subversion Repositories HomeAutomation

Rev

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

Rev 1729 Rev 1817
Line 67... Line 67...
67
    canMessage.setData("Protocol", protocol);
67
    canMessage.setData("Protocol", protocol);
68
    canMessage.setData("IRdata", data);
68
    canMessage.setData("IRdata", data);
69
    sendMessage(canMessage);
69
    sendMessage(canMessage);
70
}
70
}
71
 
71
 
72
irTransceive.prototype.sendConfig = function(channel, direction, power)
72
irTransceive.prototype.sendConfig = function(channel, direction, power, modfreq)
73
{
73
{
74
    var canMessage2 = new CanMessage("sns", "To_Owner", this.myName, this.myId, "IrConfig");
74
    var canMessage2 = new CanMessage("sns", "To_Owner", this.myName, this.myId, "IrConfig");
75
    canMessage2.setData("Channel", channel);
75
    canMessage2.setData("Channel", channel);
76
    canMessage2.setData("Direction", direction);
76
    canMessage2.setData("Direction", direction);
77
    canMessage2.setData("Transmit power", power);
77
    canMessage2.setData("Transmit power", power);
-
 
78
    canMessage2.setData("Modulation frequency", modfreq);
78
    sendMessage(canMessage2);
79
    sendMessage(canMessage2);
79
}
80
}
80
 
81