Post 4 made on Monday March 23, 2009 at 04:52 |
macdonm2 Long Time Member |
Joined: Posts: | January 2008 12 |
|
|
Hi all,
Thanks for the replys. Barry I will have a look at your website.
Meantime here is the Async code that I am using which returns 'empty socket' telling me that the Ondata subroutine is not being called.
Thanks again for all the help.
var socket = new TCPSocket(); var result = "empty"; socket.onConnect = function() { write("#pronto#@Z01@1$PLAY$~\r\n"); }
socket.onData = function() { //var data = read() result += read(); if (result.indexOf("~") != -1) this.close(); };
socket.onIOError = function(e) { CF.widget("LINE1")= ( "Socket error: " + e); };
socket.connect('192.168.1.100', 6789, 3000); CF.widget("LINE1").label = "finished"+ result;
|
|
macdonm2 |
|