9 Sept 2024, 20:11

I have successfully implemented the SDK to create an OSC module that send a trigger to QLab. However, it only works once. In other words, I press the button, it send the OSC string to QLab, everything works as it should. But then it's as if it stops listening for another button press. Am I missing something? Here is my JS in main.js:

var oscClient = require("./osc").create("192.168.1.202", 53000);

var buttonManager = require("buttons");

buttonManager.on("buttonDown", function(obj) {
	oscClient.send("/cue/2/start", function() {
		console.log("message sent");
	});
});```