We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am receiving this message from another app via a udp socket (hypermedia.net). I'd like to convert message after blank to a floating point value.
receive: "56871833174353 -0.095239157733537" from 192.168.178.52 on port 50396
void receive( byte[] data, String ip, int port ) {
data = subset(data, 0, data.length-2);
String message = new String( data );
println( "receive: \""+message+"\" from "+ip+" on port "+port );
}
Answers
Ok, I have found a solution: