Introduction
The SDK shall provide a standard way to manipulate IP Addresses. Both option should be possible - when the device is connected or not connected.
Assumptions
Right now, it is only possible - if a device vendor adds their own PropertyObject for manipulating the IP Address.
For this a user needs to be connected with the device already, before he can change the ip address. A connection is also via IPv6 possible.
Requirements
IP address changeable after connections: I as user would like to have the possibility to change the ip address of a network interface, after I connected with the device. This object should be under the device.
IP address changeable before connection: My device is in a different subnet but found via mdns. I as a User need to change the static IP address to be able to connect to it.
User Interaction
auto device = openDAQInstance.connect("daq://192.168.10.5");
for (networkObject : device.getNetworkInterfaces())
{
networkObject.setType(daq::DHCP);
networkObject.apply();
// or
networkObject.setIpAddress("192.168.0.1");
networkObject.setType(daq::Static);
networkObject.apply();
}
IP Changeable before connection:
auto deviceInfo = openDAQInstance.getAvailableDevices()[0]
deviceInfo.getNetworkInterfaces();
for (networkObject : device.getNetworkInterfaces())
{
networkObject.setType(daq::DHCP);
networkObject.apply();
// or
networkObject.setIpAddress("192.168.0.1");
networkObject.setType(daq::Static);
networkObject.apply();
}
Who shall implement the Feature
openDAQ
Contribution
Status
Feature Planned on Roadmap
Feature Request is discussed in Working Group
Feature declined.