I am using Recontana's ArdOSC library on Arduino IDE 1.0.1 with an Arduino Uno R3 + Offical Ethernet Shield.
What I'm trying to accomplish is, to Serial.print incoming OSC messages, I would like to have something like "push1 1.00 or push1 0.00", and I will eventually have if statements to send certain RF link signals to other Arduino reciever modules. Basically to have an iPod Touch communicate over OSC to Arduino. I have sucessfully gotten Recontana's old OSC library, OSCClass.h to work on IDE 0022 but with the 1.0.1 IDE update, it no longer works and the ArdOSC library is completely different and very confusing to me.
I have started with the SimpleRecieve example provided, but when I print the "getArgInt32(0)" I just get a number like "1616705461" no matter which button I press.
With the old library, I was able to create "String address0 = recMes.getAddress(0)" and use if statements to Serial.print which button was pressed.
Here is my current code that Serial.prints strange a number like "1616705461" no matter which button i press on my iPod with TouchOSC.
#include <SPI.h>
#include <Ethernet.h>
#include <ArdOSC.h>
byte myMac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte myIp[] = { 192, 168, 100, 125 };
int serverPort = 8000;
OSCServer server;
OSCMessage *_mes;
void setup(){
Serial.begin(9600);
Ethernet.begin(myMac ,myIp);
server.begin(serverPort);
}
void loop(){
if(server.aviableCheck()>0){
Serial.println("Message Recieved");
Serial.println(_mes->getArgInt32(0));
}
}
If anyone has experience with this library, any help would be greatly appreciated,
thank you!