Post 7 made on Monday March 23, 2009 at 15:47 |
macdonm2 Long Time Member |
Joined: Posts: | January 2008 12 |
|
|
OK so I figured it out - missing ()
Here is the working code for anyone else who wishes to use it.
Many thanks to all.
---------------------------------
var socket = new TCPSocket(false); var result = ""; socket.onConnect = function() { socket.write("#pronto#@Z01@1$PLAY$~\r\n"); };
socket.onData = function() { var received=socket.read(); result += received; CF.widget("LINE1").label="receiving"+ received; };
socket.connect('192.168.1.100', 6789, 3000);
|
|
macdonm2 |
|