public static void CopyData(CEthernetData ethernet, dc_EthernetConfiguration dcEthernet) { ethernet.DHCP = (OnOff)dcEthernet.DHCP; ethernet.IP = dcEthernet.IP; ethernet.Mask = dcEthernet.Mask; ethernet.Gateway = dcEthernet.Gateway; ethernet.DNS1 = dcEthernet.DNS1; ethernet.DNS2 = dcEthernet.DNS2; ethernet.Port = dcEthernet.Port; }
public async Task SetEthernetConfigurationAsync(CEthernetData ethernetData) { await stack.WriteEthernetConfigurationAsync(ethernetData); }