Ape / samsungctl

Remote control Samsung televisions via a TCP/IP connection
MIT License
711 stars 191 forks source link

Porting to C# #49

Closed cryptobob504 closed 6 years ago

cryptobob504 commented 6 years ago

Hi,

I'm attempting to port this over to c# to eventually use in homeseer for my 2016 UN55KU6270.

I'm able to get a connection and authenticate with the tv. However, after sending the JSON I'm getting the following error from the tv:

{"event":"ms.error","data":{"message":"missing method field from message"}}

I'm sending the following JSON across:

"{\"method\":\"ms.remote.control\",\"params\":\"{\"Cmd\":\"Click\",\"DataOfCmd\":\"KEY_MENU\",\"Option\":\"false\",\"TypeOfRemote\":\"SendRemoteKey\"}\"}"

Any clue what I'm doing wrong here?

Ape commented 6 years ago

You can try to repeat the same messages samsungctl is sending. Make sure you have everything exactly the same.

I'm closing this issue since it doesn't really belong to this project.