But for some reason I cant pass the info from TouchOSC to TD and over to the NodeMCU. I’m using the exact same command sent from TouchOSC. I’m going from TouchOSC → oscin1 → select → oscout, the IP and Ports are copied from the working TouchOSC settings.
I definitely remember you and have been following your fantastic work for a while. I’m living in providence with Tate who i think you know as well.
Anyway,
Here is an image of the touchOSC settings that work. Im sending /1/toggle1 from TouchOSC and it works great, but when i try to do the same from TD, it fails.
Ah, it’s probably your numerical format. You’re probably sending a float from TD right now. Maybe try changing the Data Format parameter in the OSC Out Chop to Int(32-bit).
You might also consider using a OSC DAT instead. I added an example of that to your scene. Curious if this works as expected. OSCButton_oscDat.toe (4.48 KB)
Right, the chop execute in that file only sends out the message when the channel goes from off to on. If you want to get both states, delete the code on the onOffToOn() callback and add this in:
So the chop channel value gets passed into the callback as ‘val’ and is cast to an int before being sent out via the osc dat. Similarly, you could just copy the function in onOffToOn() to onOnToOff() and change the value to 0.
Regarding the osc chop, I think you might just have your channel name wrong. Currently you have ‘1/toggle1’ but you should probably add that forward slash before the 1 like so ‘/1/toggle1’