daltoniam / Starscream

Websockets in swift for iOS and OSX
Apache License 2.0
8.36k stars 1.21k forks source link

Error sending control signal to TV #1038

Open tung89hihi1123 opened 2 months ago

tung89hihi1123 commented 2 months ago

the command i use: let key: String = "KEY_ENTER" let jsonCommand: String = """ { "method": "ms.remote.control", "params": { "Cmd": "Click", "DataOfCmd": "(key)", "Option": "false", "TypeOfRemote": "SendRemoteKey" } } """ socket.write(string: jsonCommand) return result: Received text: {"data":{"message":"unrecognized method value : ms.remote.control"},"event":"ms.error"}

can you help me?