Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 5 made on Saturday August 1, 2020 at 16:47
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,645
On August 1, 2020 at 15:11, mpg7321 said...
I understand that yes I am opening a new socket right now. Just starting with a very basic sample before I move on. I removed the socket.onData function buut still not seeing data in the panel on the page.

construct your socket with

new TCPSocket(true);

Don't worry about assigning onData, onConnect, onIOError functions as they are not used if you supply 'true' in the constructor.

Next, issue your call to connect()

followed by call to write()

followed by read()
Note that you may have to loop until you get 0 bytes returned.

followed by call to close()

Not sure this will work as you don't know how many bytes are actually there.

Also, note that as this is HTTP protocol, the data you are expecting to put in the label will not be pretty, meaning that you will have to parse out text you might want.

I've never used KODI so I won't be of much help with deciphering the responses.

Lyndel
Lyndel McGee
Philips Pronto Addict/Beta Tester


Hosting Services by ipHouse