I'm not quite sure if this is what you need but I hope it helps. What follows should help you set a param once and have it persist for every time you use the panel. Just set the IP and port.
- Create a param with the OID Device_IP with Wiidget Hint: Text Entry(3)
- Create a param with the OID Device_Port with Wiidget Hint: Text Entry(3)
- Draw 2 default params on your panel one for each Device_IP and Device_Port (might be good to include the param name here if you'd like)
- Whenever you send a rosstalk message (usually constructed {IP, Port, Message}) use - where message is your message
rosstalk.sendMessage(params.getValue('Device_IP', 0) ,params.getValue('Device_Port', 0), '[message]');
You can also create an API and put some global variables in there like
var DeviceIP = params.getValue('Device_IP', 0);
and simplify it all quite a bit.
#DashBoard