Hello Jon,
I would also get rid of the "throws SocketException" part and the socket object - unless you need socket communication. Don't forget to define your mediaFlange object where previously the socket was defined.
The naming of the IOs is not really standardized, but you should be able to do something like mediaFlange.SetOutput1(true)
public void run() {
running = true;
while (running) {
mediaFlange.SetOutput1(true)
}
}
I haven't worked with Sunrise in quite a while, but Sunrise Workbench should suggest the possible options anyway.
The code above would constantly set your output 1 to true, which is not terribly exciting.
Best,
Johannes