You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\Users\Me\Documents\Arduino\libraries\OSCMessage/OSCMessage.h:112:2: note: candidate: OSCMessage::OSCMessage(const char*) <near match>
OSCMessage (const char * _address);
^~~~~~~~~~
C:\Users\Me\Documents\Arduino\libraries\OSCMessage/OSCMessage.h:112:2: note: conversion of argument 1 would be ill-formed:
exit status 1
Compilation error: no matching function for call to 'OSCMessage(char&)'
From the documentation I guess the "route" function or the pattern matching could be helpful to me. But I don't quite understand it.
Any help is appreciated.
The text was updated successfully, but these errors were encountered:
tempOSCmessage is the string in which I built the address I'm trying to send - sensorNum and newReading[sensorNum] are byte and int variables from elsewhere in the program.
msg is the OSC Message object that I am sending.
String tempOSCmessage = "/location/1/";
//add sensor number to OSC Address
tempOSCmessage += sensorNum;
//add sensor reading to OSC Address
tempOSCmessage +="/";
tempOSCmessage += newReading[sensorNum];
//add "press" command to OSC Address
tempOSCmessage += "/press";
//create char* pointer to OSC Address to pass to OSC constructor
const char* toSend = tempOSCmessage.c_str();
OSCMessage msg(toSend);
Hey,
I'm looking for a way to send multiple key presses via osc. The addresses are supposed to look something like this:
I can achieve this by writing one address at a time like this:
But I need a function which works for all keys, so I modified it to look like this:
However that returns an error:
From the documentation I guess the "route" function or the pattern matching could be helpful to me. But I don't quite understand it.
Any help is appreciated.
The text was updated successfully, but these errors were encountered: