I'm trying to read data from a socket. The data is Modbus/TCP. The
first routine I tried is
read from socket pSock for 3 uInt2s
This gives me no data (both "it" and "the result" are empty). I know
the packet has been received and there is data after these 3 numbers.
If I change this
to:
read from socket for 6 chars
put it into tData
put binaryDecode("m3", tData, tSeq, tProto, tBytes)
then tSeq, tProto, and tBytes get the right data in them. I have tried
the first method with and without a callback message to no avail. Am I
missing something?
len morgan
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode