Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is first connection really necessary? #1

Closed
theRemoter opened this issue Jan 11, 2021 · 3 comments
Closed

Is first connection really necessary? #1

theRemoter opened this issue Jan 11, 2021 · 3 comments

Comments

@theRemoter
Copy link

Hi, thanks for the great documentation!

My question is:

  1. does it really necessary to send the first GET request: http://<ipOfYourTV>:56790/dd.xml or can I skip it and right away send post messages to http://<ipOfYourTV>:56789/apps/SmartCenter ?
  2. if I must send the first GET message, do I really need to add the header of Connection: Keep-alive ?

Thanks

@Tukks
Copy link
Owner

Tukks commented Jan 11, 2021

Hello,

No, I think is not necessary.
on Openhab (my home automation system)
I just need to do something like this :
sendHttpPostRequest("http://192.168.1.48:56789/apps/SmartCenter", "", "<remote><key code=1006/></remote>");

i didn't update the doc.

@theRemoter
Copy link
Author

thx and how did u got the port? is it always the same on your tv?

@Tukks
Copy link
Owner

Tukks commented Jan 11, 2021

Yes, always this one, I get the port when I sniffed the packet from my TV.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants