public Transmit ( string irCode, Emitter emitter = null, CodeFormat codeFormat = null, int repeatCount = null, int inactivityWaitTime = null ) : void | ||
irCode | string | The IR code to transmit. |
emitter | Emitter | The emitter to transmit the IR code with |
codeFormat | CodeFormat | The format of the IR code. |
repeatCount | int | Indicates how many iterations of the code should be /// sent (in the case of a 2-piece code, the first stream is sent once followed /// by the second stream sent repeatCount times). |
inactivityWaitTime | int | Time in milliseconds since the last received /// IR activity to wait before sending an IR code. Normally, pass 0 for this parameter. |
return | void |
public void Transmit(
string irCode,
Emitter? emitter = null,
CodeFormat? codeFormat = null,
int? repeatCount = null,
int? inactivityWaitTime = null)
{
CheckDisposed();
var task = Task.Factory.StartNew(() => TransmitInternal(irCode,
codeFormat,
repeatCount,
inactivityWaitTime,
emitter));
try
{
task.Wait();
}
catch (Exception ex)
{
throw ex.GetBaseException();
}
}