I'm writing a simple discovery client/server app using Java (for the server) and a LiveCode app on iOS for the client.
The server responds to a broadcast request just fine and I am able to get a response into LiveCode.
However the data is somehow coded differently to normal strings.
The java code to send the datagram looks like this:
serverSocket.send(new DatagramPacket(sendData, 1024, IPAddress, 9877));
sendData is a byte array.
The LiveCode that receives this packet looks like this:
mergSocketAcceptConnections 9877,true
I tried putting the data received into a database using revExecuteSQL, but I get an "Unrecognised token" error returned.
I need to either format the data before sending it from Java or process it after receiving it in LiveCode.