Subversion Repositories HomeAutomation

Rev

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

Rev 2116 Rev 2117
Line 150... Line 150...
150
{
150
{
151
    return IROut_Send(alias_name, remote_name, button_name, "Burst");
151
    return IROut_Send(alias_name, remote_name, button_name, "Burst");
152
}
152
}
153
Console_RegisterCommand(IROut_SendBurst, IROut_StartSendAutoComplete);
153
Console_RegisterCommand(IROut_SendBurst, IROut_StartSendAutoComplete);
154
 
154
 
155
function IROut_SendBurst_Raw(alias_name, data)
155
function IROut_SendBurst_Raw(alias_name, protocol, data)
156
{
156
{
157
    return IROut_Send_Raw(alias_name, "Nexa2", data, "Burst");
157
    return IROut_Send_Raw(alias_name, protocol, data, "Burst");
158
}
158
}
159
Console_RegisterCommand(IROut_SendBurst_Raw, function(arg_index, args) { return Console_StandardAutocomplete(arg_index, args, IROut_Aliases()); });
159
Console_RegisterCommand(IROut_SendBurst_Raw, function(arg_index, args) { return Console_StandardAutocomplete(arg_index, args, IROut_Aliases(), IROut_Protocols()); });
160
 
160
 
161
function IROut_SendDuration(alias_name, remote_name, button_name, duration_ms)
161
function IROut_SendDuration(alias_name, remote_name, button_name, duration_ms)
162
{
162
{
163
    IROut_Send(alias_name, remote_name, button_name, "Pressed");
163
    IROut_Send(alias_name, remote_name, button_name, "Pressed");
164
    Timer_SetTimer(function(timer) {IROut_StopSend(alias_name);}, duration_ms, false);
164
    Timer_SetTimer(function(timer) {IROut_StopSend(alias_name);}, duration_ms, false);