I'm trying to modify the template for the Roku Netflix player. Right now it's set to be controlled via an IR interface. However, I've gotten a quasi-official ICD from Roku to control it via telnet. The template is of type AV/Cable Box (which seemed to be the closest match when I created it). Per TSCHAK's advice, I added a PORT (#171) device data field. However, when I add code to the Command fields, I get an error about not finding a port. I believe this is due to the case that there is a Com Port on PC data field defined for the device (I'm not sure exactly how, as it's not in the template. i think it's inherited from the device type). This field is set to empty and I think GSD defaults to using this field and it's trying to create a serial connection. TSCHAK suggested using a Ruby TCPSocket to communicate. That socket requires the IP address of the target in its constructor.
Now, to make a long plead short, I haven't been able to find the documentation for how to extract a device's IP address from it's devicedata fields inside GSD so I can feed it to the constructor. Does anyone know how to do it?
Thanks for the help.