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 1 made on Saturday February 27, 2021 at 17:07
Fischi
Long Time Member
Joined:
Posts:
January 2011
99
Hi,
Im using the following script to show a snapshot from my AXIS camera on my Pronto TSU:


var socket = new TCPSocket();
var receivedData = "";

socket.onConnect = function() {
System.print ("TCP-IP Connected");
socket.write("GET /axis-cgi/jpg/image.cgi?resolution=CIF&camera=3&compression=10&clock=0&date=0&text=0" + " HTTP/1.1\r\n\r\n");
};

socket.onData = function() {
receivedData += socket.read();
System.print ("Tcpip Data Received:"+ receivedData);
};

socket.onIOError = function (x) {
GUI.widget("panel").label = "IOError " + x;
System.print ("Tcp Error:"+ x);
};

socket.onClose = function () {
// remove the HTTP info from received data
var imageStartIndex = receivedData.indexOf("\r\n\r\n");
var bitmapData = receivedData.substring(imageStartIndex+4);

// display the image
var MyImage = new Image(bitmapData);
GUI.widget("panel").setImage(MyImage);
};

socket.connect("192.168.83.25", 80, 3000);

I want to use onWake to renew the connection to my camera when the Pronto awakes.

How to do this in detail ?

Best regards,
Fischi


Hosting Services by ipHouse