I've been playing around with Recotana's OSC library and came across an issue I'm not sure how to solve. Basically the arduino receives an OSC message something like this:
/dmx/1
and of course the value.
When I use:
recMes.getAddress(1);
it returns the second value with the forward slash like this:
/1
How would I get the 1 by itself without the forward slash. I've tried the wstring library with no luck. Plus that's probably not the most efficient way to do this. Is there anyone familiar with the library that they'd know how to modify the code so recMes.getAddress(1) outputs without the forward slash? I tried to look through it but it all seems a little foreign to me. Thanks.
Looks like I solved my own problem. Replace lines 700-711 from the original OSCClass.cpp (v1.0.1) with the code below. This will output the osc messages without the forward slashes.
if(adrCount<MAX_ADDRESS){
//Added this in to remove the slashes out of final output
if(d!='/'){
tempAddress[adrCount][adrMesPos]=d;
hey guys..
i need some help with this library..
i cant compile it..
no example..
i fix the spi.h problem.. but after that i get a thousand errors...
i use arduino 0019
i downloloaded the 17 version and it compiled..
i have the touch osc app on my iphone and cannot find out if something works or not...
i'm really noob on the osc part
any ideas?
Begin with the examples, modify and put together some to do what you need and you will progressively understand it and be able to do everything by yourself. But take your time.
Does anyone know of a working OSC library for the latest arduino release (0021)? If not maybe I'll have to figure out how to write one and see what happens.