public async void SendSignalAsync(IRCode iRCode, string BlasterName) { if (iRCode.Command != null && iRCode.Command != "") { Rm RMBlaster = GetRMBlasterByName(BlasterName); WLog("Send {0} via {1}", iRCode.Name, BlasterName); var x = await RMBlaster.Auth(); if (x) { var data = StringHelper.CreateBytesFromHexString(iRCode.Command); x = await RMBlaster.SendData(data); if (x) { WLog("OK"); } else { WLog("! Blaster [{0}] not respond", BlasterName); } } else { WLog("! Blaster [{0}] not respond", BlasterName); } } }
private async void SendSignalAsync(int join) { Rm RMBlaster = GetRMBlasterByName(IRCodes[join].Blaster); WLog("Send {0} via {1}", IRCodes[join].Name, IRCodes[join].Blaster); var x = await RMBlaster.Auth(); if (x) { var data = StringHelper.CreateBytesFromHexString(IRCodes[join].Command); x = await RMBlaster.SendData(data); if (x) { WLog("OK"); } else { WLog("! Blaster [{0}] not respond", IRCodes[join].Blaster); } } else { WLog("! Blaster [{0}] not respond", IRCodes[join].Blaster); } }