NodeMCU_OSC
NodeMCU_OSC copied to clipboard
Only able to turn ON lights, not OFF
Hello good sir, and thank you for this code.
My problem is I am only able to toggle lights ON, and not OFF. I am using qlab to send the OSC messages to the nodeMCU. I am using the OSCreceive sketch. Everything is connected like it should be, the nodeMCU has its static IP address, and receives communication through port 53003, which Ive changed in the sketch, and is the same on qlab.
I have no experience with arduino IDE or C#, only been working with RPI, and python until now, so the coding language is a bit cryptic to me...
I am sure there is be a way to change the code to be an OSC message for ON, and an OSC message for OFF, instead of a toggle, but I will probably need to do loads of tutorials before trying that out.
Is there any ways you could enlighten me? Or any thoughts on what might be wrong?
As I explained previous, the toggle light switch code does not work as a expected. But I figured out how to edit the code to wait for 2 different OSC commands, 1 for turn on, and 1 for turn off. This works well for my project.