P5OSC Problem: Can only send integers, Doesn't recognise Strings
in
Contributed Library Questions
•
2 years ago
Hello,
I want to send Strings via UDP to a Processing program I wrote. If I send this string "/led1 10" via UDP to my sketch it recognises that it received a OSC message to /led1 of type int. If I send this message "/led1 hello" to the same Processing sketch it doesn't acknowledge the receipt of a message. If I remove the 1 from the end of /led1 the processing sketch will acknowledge both int and String data type. I need to keep the 1 as it is the LED ID number - it's important for what I am doing.
Does anyone have an idea on what I am doing wrong.
Regards,
David.
I want to send Strings via UDP to a Processing program I wrote. If I send this string "/led1 10" via UDP to my sketch it recognises that it received a OSC message to /led1 of type int. If I send this message "/led1 hello" to the same Processing sketch it doesn't acknowledge the receipt of a message. If I remove the 1 from the end of /led1 the processing sketch will acknowledge both int and String data type. I need to keep the 1 as it is the LED ID number - it's important for what I am doing.
Does anyone have an idea on what I am doing wrong.
Regards,
David.
1