I'm trying to create fields with values from the Sync and Define window for a DeviceFactory device, but the values are never saved. I can access them in validateDeviceFactoryUi() but after that they go poof. Is it possible to have shared device config for a group of DeviceFactory devices? For instance, they all share an IP, but live on different ports. Simple example, but mine's more complex and involves a timeout, interval, username and password as well as an IP. I'd like to set these up in the factory and not per sub-device. Each sub device has its own set of configs; and those do save!
This is a small (incomplete) example that show the problem. `address` is never saved and always displays the default.
- Code: Select all
Devices.xml
<?xml version="1.0"?>
<Devices>
<DeviceFactory>
<Name>Network Server</Name>
<ButtonTitle>Save</ButtonTitle>
<ConfigUI>
<Field id="address" type="textfield" defaultValue="192.168.1.100">
<Label>IP Address:</Label>
</Field>
Thanks for any insight!
-david