public void SwitchReceiverOff() { SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint, ContructReceiverMessage("PWR", "00")); SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint, ContructReceiverMessage("PWR", "QSTN")); }
public void SetVolume(int level) { SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint, ContructReceiverMessage("MVL", level.ToString("X"))); Thread.Sleep(500); SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint, ContructReceiverMessage("MVL", "QSTN")); }
public void VolumeUp() { SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint, ContructReceiverMessage("MVL", "UP")); Thread.Sleep(500); SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint, ContructReceiverMessage("MVL", "QSTN")); }
public void SwitchReceiverOn() { if (!currentState.CurrentPowerState) { SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint, ContructReceiverMessage("PWR", "01")); //System.Threading.Thread.Sleep(7000); } }
public bool InitiateConnectionToReceiver() { SocketsHelper.ConnectToTCPSocketAndListenToCallback(localEndPoint, targetEndPoint, ProcessReceivedMessage, ContructReceiverMessage("PWR", "QSTN"), null, ProcessReceivedMessage); SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint, ContructReceiverMessage("PWR", "QSTN")); SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint, ContructReceiverMessage("MVL", "QSTN")); return(true); }
public void ClickOk() { SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint, ContructReceiverMessage("NTC", "SELECT")); }
public void SelectItemFromTheList(int itemNumber) { SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint, ContructReceiverMessage("NLS", "L" + itemNumber.ToString())); }
public void OpenTvCd() { SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint, ContructReceiverMessage("SLI", "23")); }
public void UnMute() { SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint, ContructReceiverMessage("AMT", "00")); }
public void OpenNetworkFavorites() { SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint, ContructReceiverMessage("SLI", "28")); //System.Threading.Thread.Sleep(1500); }
public void SwitchTVOff() { SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint, ContructReceiverMessage("CTV", "PWROFF")); }
public void Back() { SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint, ContructReceiverMessage("NTC", "RETURN")); }
public void Stop() { SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint, ContructReceiverMessage("NTC", "STOP")); }
private void SendKeyMessageToTV(string key) { SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint, Encoding.ASCII.GetBytes(ConstructKeyMessage(key))); }
private void SendConnectionMessageToTV() { SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint, Encoding.ASCII.GetBytes(ConstructConnectionMessage())); }