|
@@ -14,7 +14,6 @@ Rectangle {
|
|
width: parent.width
|
|
width: parent.width
|
|
height: parent.height
|
|
height: parent.height
|
|
color: "white"
|
|
color: "white"
|
|
- property int ipsettingsXpos: 200
|
|
|
|
|
|
|
|
Flickable {
|
|
Flickable {
|
|
id: flickable
|
|
id: flickable
|
|
@@ -35,247 +34,259 @@ Rectangle {
|
|
hmiIP.ipFocus = 0;
|
|
hmiIP.ipFocus = 0;
|
|
}
|
|
}
|
|
|
|
|
|
-// Rectangle{
|
|
|
|
-// x: 100
|
|
|
|
-// y: 50
|
|
|
|
-// width:200
|
|
|
|
-// height: 50
|
|
|
|
-// color: "lightgray"
|
|
|
|
-
|
|
|
|
-// Switch {
|
|
|
|
-// id:dhcpSWITCH
|
|
|
|
-// checked: false
|
|
|
|
-
|
|
|
|
-// text: (checked)?"DHCP":"STATIC"
|
|
|
|
-// font.pixelSize: 20
|
|
|
|
-
|
|
|
|
-// onCheckedChanged: {
|
|
|
|
-// hmiIP.ipvisible = !checked;
|
|
|
|
-// hmiNETMASK.ipvisible = !checked;
|
|
|
|
-// hmiGATEWAY.ipvisible = !checked;
|
|
|
|
-// hmiDNS.ipvisible = !checked;
|
|
|
|
-
|
|
|
|
-// }
|
|
|
|
-// }
|
|
|
|
-// }
|
|
|
|
-
|
|
|
|
- Label {
|
|
|
|
- id: lab1
|
|
|
|
- x: hmiIP.posX - lab1.implicitWidth
|
|
|
|
- y: hmiIP.posY
|
|
|
|
-// visible: !dhcpSWITCH.checked
|
|
|
|
- font.pixelSize: 20
|
|
|
|
- //: ID:_sys_ipaddress Ip Address settings
|
|
|
|
- text: qsTrId("_sys_ipaddress") + " : " + transLoad.emptyString //qsTr("IP-Adresse : ") + transLoad.emptyString
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- IpAddressInput {
|
|
|
|
- id: hmiIP
|
|
|
|
- posX: ipsettingsXpos
|
|
|
|
- posY: 100
|
|
|
|
- ipwidth: 200
|
|
|
|
- ipcolor: "black"
|
|
|
|
- ipFontSize: 20
|
|
|
|
|
|
+ Rectangle {
|
|
|
|
+ id: setNetworkADDRESS
|
|
|
|
+ width: root.width / 2
|
|
|
|
+ height: root.height
|
|
|
|
|
|
- onIpAddressChanged: {
|
|
|
|
- setEth0.address = ipAddress;
|
|
|
|
|
|
+ //border.color: "blue"
|
|
|
|
+ //border.width: 2
|
|
|
|
+
|
|
|
|
+ property double ipDisplayFontSize: (height / 16) * 0.74
|
|
|
|
+ property int ipsettingsXpos: (width / 3) * 1.25
|
|
|
|
+ property double ipsettingsWidth: width - ipsettingsXpos
|
|
|
|
+
|
|
|
|
+ // Rectangle{
|
|
|
|
+ // x: 100
|
|
|
|
+ // y: 50
|
|
|
|
+ // width:200
|
|
|
|
+ // height: 50
|
|
|
|
+ // color: "lightgray"
|
|
|
|
+
|
|
|
|
+ // Switch {
|
|
|
|
+ // id:dhcpSWITCH
|
|
|
|
+ // checked: false
|
|
|
|
+
|
|
|
|
+ // text: (checked)?"DHCP":"STATIC"
|
|
|
|
+ // font.pixelSize: 20
|
|
|
|
+
|
|
|
|
+ // onCheckedChanged: {
|
|
|
|
+ // hmiIP.ipvisible = !checked;
|
|
|
|
+ // hmiNETMASK.ipvisible = !checked;
|
|
|
|
+ // hmiGATEWAY.ipvisible = !checked;
|
|
|
|
+ // hmiDNS.ipvisible = !checked;
|
|
|
|
+
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+
|
|
|
|
+ Label {
|
|
|
|
+ id: lab1
|
|
|
|
+ x: hmiIP.posX - lab1.implicitWidth
|
|
|
|
+ y: hmiIP.posY
|
|
|
|
+ // visible: !dhcpSWITCH.checked
|
|
|
|
+ font.pixelSize: parent.ipDisplayFontSize //20
|
|
|
|
+ //: ID:_sys_ipaddress Ip Address settings
|
|
|
|
+ text: qsTrId("_sys_ipaddress") + " : " + transLoad.emptyString //qsTr("IP-Adresse : ") + transLoad.emptyString
|
|
}
|
|
}
|
|
|
|
|
|
- onKeyDownPressed: {
|
|
|
|
- var foc = ipFocus;
|
|
|
|
- ipFocus = 0;
|
|
|
|
- hmiNETMASK.ipFocus = foc;
|
|
|
|
- }
|
|
|
|
- onKeyUpPressed: {
|
|
|
|
- var foc = ipFocus;
|
|
|
|
- ipFocus = 0;
|
|
|
|
- hmiDNS.ipFocus = foc;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ IpAddressInput {
|
|
|
|
+ id: hmiIP
|
|
|
|
+ posX: parent.ipsettingsXpos
|
|
|
|
+ posY: parent.height / 16 * 4
|
|
|
|
+ ipwidth: parent.ipsettingsWidth
|
|
|
|
+ ipcolor: "black"
|
|
|
|
+ ipFontSize: parent.ipDisplayFontSize //20
|
|
|
|
|
|
- Label {
|
|
|
|
- id: lab2
|
|
|
|
- x: hmiNETMASK.posX - lab2.implicitWidth
|
|
|
|
- y: hmiNETMASK.posY
|
|
|
|
-// visible: !dhcpSWITCH.checked
|
|
|
|
- font.pixelSize: 20
|
|
|
|
- //: ID:_sys_netmask Ip Address settings Netmask
|
|
|
|
- text: qsTrId("_sys_netmask") + " : " + transLoad.emptyString //qsTr("Netmask : ") + transLoad.emptyString
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- IpAddressInput {
|
|
|
|
- id: hmiNETMASK
|
|
|
|
- posX: ipsettingsXpos
|
|
|
|
- posY: 150
|
|
|
|
- ipwidth: 200
|
|
|
|
- ipcolor: "black"
|
|
|
|
- ipFontSize: 20
|
|
|
|
|
|
+ onIpAddressChanged: {
|
|
|
|
+ setEth0.address = ipAddress;
|
|
|
|
+ }
|
|
|
|
|
|
- onIpAddressChanged: {
|
|
|
|
- setEth0.netmask = ipAddress;
|
|
|
|
- }
|
|
|
|
- onKeyDownPressed: {
|
|
|
|
- var foc = ipFocus;
|
|
|
|
- ipFocus = 0;
|
|
|
|
- hmiGATEWAY.ipFocus = foc;
|
|
|
|
- }
|
|
|
|
- onKeyUpPressed: {
|
|
|
|
- var foc = ipFocus;
|
|
|
|
- ipFocus = 0;
|
|
|
|
- hmiIP.ipFocus = foc;
|
|
|
|
|
|
+ onKeyDownPressed: {
|
|
|
|
+ var foc = ipFocus;
|
|
|
|
+ ipFocus = 0;
|
|
|
|
+ hmiNETMASK.ipFocus = foc;
|
|
|
|
+ }
|
|
|
|
+ onKeyUpPressed: {
|
|
|
|
+ var foc = ipFocus;
|
|
|
|
+ ipFocus = 0;
|
|
|
|
+ hmiDNS.ipFocus = foc;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
|
|
- Label {
|
|
|
|
- id: lab3
|
|
|
|
- x: hmiGATEWAY.posX - lab3.implicitWidth
|
|
|
|
- y: hmiGATEWAY.posY
|
|
|
|
-// visible: !dhcpSWITCH.checked
|
|
|
|
- font.pixelSize: 20
|
|
|
|
- //: ID:_sys_defaultrouter Ip Address settings Defaultrouter
|
|
|
|
- text: qsTrId("_sys_defaultrouter") + " : " + transLoad.emptyString //qsTr("Def. Router : ") + transLoad.emptyString
|
|
|
|
- }
|
|
|
|
|
|
+ Label {
|
|
|
|
+ id: lab2
|
|
|
|
+ x: hmiNETMASK.posX - lab2.implicitWidth
|
|
|
|
+ y: hmiNETMASK.posY
|
|
|
|
+ // visible: !dhcpSWITCH.checked
|
|
|
|
+ font.pixelSize: parent.ipDisplayFontSize // 20
|
|
|
|
+ //: ID:_sys_netmask Ip Address settings Netmask
|
|
|
|
+ text: qsTrId("_sys_netmask") + " : " + transLoad.emptyString //qsTr("Netmask : ") + transLoad.emptyString
|
|
|
|
+ }
|
|
|
|
|
|
- IpAddressInput {
|
|
|
|
- id: hmiGATEWAY
|
|
|
|
- posX: ipsettingsXpos
|
|
|
|
- posY: 200
|
|
|
|
- ipwidth: 200
|
|
|
|
- ipcolor: "black"
|
|
|
|
- ipFontSize: 20
|
|
|
|
|
|
+ IpAddressInput {
|
|
|
|
+ id: hmiNETMASK
|
|
|
|
+ posX: parent.ipsettingsXpos
|
|
|
|
+ posY: parent.height / 16 * 6
|
|
|
|
+ ipwidth: parent.ipsettingsWidth
|
|
|
|
+ ipcolor: "black"
|
|
|
|
+ ipFontSize: parent.ipDisplayFontSize //20
|
|
|
|
|
|
- onIpAddressChanged: {
|
|
|
|
- setEth0.gateway = ipAddress;
|
|
|
|
- }
|
|
|
|
- onKeyDownPressed: {
|
|
|
|
- var foc = ipFocus;
|
|
|
|
- ipFocus = 0;
|
|
|
|
- hmiDNS.ipFocus = foc;
|
|
|
|
- }
|
|
|
|
- onKeyUpPressed: {
|
|
|
|
- var foc = ipFocus;
|
|
|
|
- ipFocus = 0;
|
|
|
|
- hmiNETMASK.ipFocus = foc;
|
|
|
|
|
|
+ onIpAddressChanged: {
|
|
|
|
+ setEth0.netmask = ipAddress;
|
|
|
|
+ }
|
|
|
|
+ onKeyDownPressed: {
|
|
|
|
+ var foc = ipFocus;
|
|
|
|
+ ipFocus = 0;
|
|
|
|
+ hmiGATEWAY.ipFocus = foc;
|
|
|
|
+ }
|
|
|
|
+ onKeyUpPressed: {
|
|
|
|
+ var foc = ipFocus;
|
|
|
|
+ ipFocus = 0;
|
|
|
|
+ hmiIP.ipFocus = foc;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
|
|
- Label {
|
|
|
|
- id: lab4
|
|
|
|
- x: hmiDNS.posX - lab4.implicitWidth
|
|
|
|
- y: hmiDNS.posY
|
|
|
|
-// visible: !dhcpSWITCH.checked
|
|
|
|
- font.pixelSize: 20
|
|
|
|
- //: ID:_sys_dns1 Ip Address settings DNS Server 1
|
|
|
|
- text: qsTrId("_sys_dns1") + " : " + transLoad.emptyString //qsTr("DNS Server : ") + transLoad.emptyString
|
|
|
|
- }
|
|
|
|
|
|
+ Label {
|
|
|
|
+ id: lab3
|
|
|
|
+ x: hmiGATEWAY.posX - lab3.implicitWidth
|
|
|
|
+ y: hmiGATEWAY.posY
|
|
|
|
+ // visible: !dhcpSWITCH.checked
|
|
|
|
+ font.pixelSize: parent.ipDisplayFontSize //20
|
|
|
|
+ //: ID:_sys_defaultrouter Ip Address settings Defaultrouter
|
|
|
|
+ text: qsTrId("_sys_defaultrouter") + " : " + transLoad.emptyString //qsTr("Def. Router : ") + transLoad.emptyString
|
|
|
|
+ }
|
|
|
|
|
|
- IpAddressInput {
|
|
|
|
- id: hmiDNS
|
|
|
|
- posX: ipsettingsXpos
|
|
|
|
- posY: 250
|
|
|
|
- ipwidth: 200
|
|
|
|
- ipcolor: "black"
|
|
|
|
- ipFontSize: 20
|
|
|
|
|
|
+ IpAddressInput {
|
|
|
|
+ id: hmiGATEWAY
|
|
|
|
+ posX: parent.ipsettingsXpos
|
|
|
|
+ posY: parent.height / 16 * 8
|
|
|
|
+ ipwidth: parent.ipsettingsWidth
|
|
|
|
+ ipcolor: "black"
|
|
|
|
+ ipFontSize: parent.ipDisplayFontSize //20
|
|
|
|
|
|
- onIpAddressChanged: {
|
|
|
|
- setEth0.nameserver = ipAddress;
|
|
|
|
- }
|
|
|
|
- onKeyDownPressed: {
|
|
|
|
- var foc = ipFocus;
|
|
|
|
- ipFocus = 0;
|
|
|
|
- hmiIP.ipFocus = foc;
|
|
|
|
- }
|
|
|
|
- onKeyUpPressed: {
|
|
|
|
- var foc = ipFocus;
|
|
|
|
- ipFocus = 0;
|
|
|
|
- hmiGATEWAY.ipFocus = foc;
|
|
|
|
|
|
+ onIpAddressChanged: {
|
|
|
|
+ setEth0.gateway = ipAddress;
|
|
|
|
+ }
|
|
|
|
+ onKeyDownPressed: {
|
|
|
|
+ var foc = ipFocus;
|
|
|
|
+ ipFocus = 0;
|
|
|
|
+ hmiDNS.ipFocus = foc;
|
|
|
|
+ }
|
|
|
|
+ onKeyUpPressed: {
|
|
|
|
+ var foc = ipFocus;
|
|
|
|
+ ipFocus = 0;
|
|
|
|
+ hmiNETMASK.ipFocus = foc;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
|
|
- ButtHMI {
|
|
|
|
- buttX: 50
|
|
|
|
- buttY: 290
|
|
|
|
- buttWidth:35
|
|
|
|
- buttHeight: buttWidth
|
|
|
|
- text: "\uf0c7" //floppy-sign
|
|
|
|
- color: Globals.customer_color_base
|
|
|
|
- onButtPressed: {
|
|
|
|
- hmiIP.makeIpAddress();
|
|
|
|
- hmiNETMASK.makeIpAddress();
|
|
|
|
- hmiGATEWAY.makeIpAddress();
|
|
|
|
- hmiDNS.makeIpAddress();
|
|
|
|
- setEth0.doSetInterface();
|
|
|
|
|
|
+ Label {
|
|
|
|
+ id: lab4
|
|
|
|
+ x: hmiDNS.posX - lab4.implicitWidth
|
|
|
|
+ y: hmiDNS.posY
|
|
|
|
+ // visible: !dhcpSWITCH.checked
|
|
|
|
+ font.pixelSize: parent.ipDisplayFontSize //20
|
|
|
|
+ //: ID:_sys_dns1 Ip Address settings DNS Server 1
|
|
|
|
+ text: qsTrId("_sys_dns1") + " : " + transLoad.emptyString //qsTr("DNS Server : ") + transLoad.emptyString
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
|
|
- ButtHMI {
|
|
|
|
- buttX: 150
|
|
|
|
- buttY: 290
|
|
|
|
- buttWidth: 35
|
|
|
|
- buttHeight: buttWidth
|
|
|
|
- color: Globals.customer_color_base
|
|
|
|
- text: "\uf046" //check-sqare
|
|
|
|
- onButtPressed: {
|
|
|
|
- hmiIP.makeIpAddress();
|
|
|
|
- hmiNETMASK.makeIpAddress();
|
|
|
|
- hmiGATEWAY.makeIpAddress();
|
|
|
|
- hmiDNS.makeIpAddress();
|
|
|
|
- setEth0.doRestartNetwork();
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ IpAddressInput {
|
|
|
|
+ id: hmiDNS
|
|
|
|
+ posX: parent.ipsettingsXpos
|
|
|
|
+ posY: parent.height / 16 * 10
|
|
|
|
+ ipwidth: parent.ipsettingsWidth
|
|
|
|
+ ipcolor: "black"
|
|
|
|
+ ipFontSize: parent.ipDisplayFontSize //20
|
|
|
|
|
|
- ButtHMI {
|
|
|
|
- id: buttUPDATE
|
|
|
|
- buttX: 250
|
|
|
|
- buttY: 290
|
|
|
|
- buttWidth: 35
|
|
|
|
- buttHeight: buttWidth
|
|
|
|
- visible: false
|
|
|
|
- color: Globals.customer_color_base
|
|
|
|
- text: "\uf0c5" //files -- für Update
|
|
|
|
- onButtPressed: {
|
|
|
|
- console.debug("Update Button Pressed");
|
|
|
|
- updateHMI.popupVISIBLE = true;
|
|
|
|
|
|
+ onIpAddressChanged: {
|
|
|
|
+ setEth0.nameserver = ipAddress;
|
|
|
|
+ }
|
|
|
|
+ onKeyDownPressed: {
|
|
|
|
+ var foc = ipFocus;
|
|
|
|
+ ipFocus = 0;
|
|
|
|
+ hmiIP.ipFocus = foc;
|
|
|
|
+ }
|
|
|
|
+ onKeyUpPressed: {
|
|
|
|
+ var foc = ipFocus;
|
|
|
|
+ ipFocus = 0;
|
|
|
|
+ hmiGATEWAY.ipFocus = foc;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
|
|
- HMI_UpdatePopup {
|
|
|
|
- id: updateHMI
|
|
|
|
- popupVISIBLE: false
|
|
|
|
- //: ID:_sys_update_hmi Headline HMI Updatewindow
|
|
|
|
- popupTEXT: qsTrId("_sys_update_hmi") + transLoad.emptyString
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- SetNetworkInterface {
|
|
|
|
- id: setEth0
|
|
|
|
- mode: "static"
|
|
|
|
- ifacename: "eth0"
|
|
|
|
- address: "192.168.0.125"
|
|
|
|
- netmask: "255.255.0.0"
|
|
|
|
- nameserver: "192.168.0.1"
|
|
|
|
- gateway: "192.168.0.1"
|
|
|
|
- infile: (sysinfo.currentCpuArchitecture == "x86_64") ?"/home/ru/IFACE/interfaces":"/etc/network/interfaces"
|
|
|
|
- outfile: (sysinfo.currentCpuArchitecture == "x86_64") ?"/home/ru/IFACE/interfaces":"/etc/network/interfaces"
|
|
|
|
-
|
|
|
|
- onAddressChanged: {
|
|
|
|
- hmiIP.ipAddress = address;
|
|
|
|
|
|
+ ButtHMI {
|
|
|
|
+ buttX: parent.width/3 * 0.5
|
|
|
|
+ buttY: parent.height / 16 * 12
|
|
|
|
+ buttWidth:parent.height / 16 * 2
|
|
|
|
+ buttHeight: buttWidth
|
|
|
|
+ text: "\uf0c7" //floppy-sign
|
|
|
|
+ color: Globals.customer_color_base
|
|
|
|
+ onButtPressed: {
|
|
|
|
+ hmiIP.makeIpAddress();
|
|
|
|
+ hmiNETMASK.makeIpAddress();
|
|
|
|
+ hmiGATEWAY.makeIpAddress();
|
|
|
|
+ hmiDNS.makeIpAddress();
|
|
|
|
+ setEth0.doSetInterface();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- onNetmaskChanged: {
|
|
|
|
- hmiNETMASK.ipAddress = netmask;
|
|
|
|
|
|
+
|
|
|
|
+ ButtHMI {
|
|
|
|
+ buttX: parent.width/3 * 1.5
|
|
|
|
+ buttY: parent.height / 16 * 12
|
|
|
|
+ buttWidth: parent.height / 16 * 2
|
|
|
|
+ buttHeight: buttWidth
|
|
|
|
+ color: Globals.customer_color_base
|
|
|
|
+ text: "\uf046" //check-sqare
|
|
|
|
+ onButtPressed: {
|
|
|
|
+ hmiIP.makeIpAddress();
|
|
|
|
+ hmiNETMASK.makeIpAddress();
|
|
|
|
+ hmiGATEWAY.makeIpAddress();
|
|
|
|
+ hmiDNS.makeIpAddress();
|
|
|
|
+ setEth0.doRestartNetwork();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- onGatewayChanged: {
|
|
|
|
- hmiGATEWAY.ipAddress = gateway;
|
|
|
|
|
|
+
|
|
|
|
+ ButtHMI {
|
|
|
|
+ id: buttUPDATE
|
|
|
|
+ buttX: parent.width/3 * 2.5
|
|
|
|
+ buttY: parent.height / 16 * 12
|
|
|
|
+ buttWidth: parent.height / 16 * 2
|
|
|
|
+ buttHeight: buttWidth
|
|
|
|
+ visible: false
|
|
|
|
+ color: Globals.customer_color_base
|
|
|
|
+ text: "\uf0c5" //files -- für Update
|
|
|
|
+ onButtPressed: {
|
|
|
|
+ console.debug("Update Button Pressed");
|
|
|
|
+ updateHMI.popupVISIBLE = true;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- onNameserverChanged: {
|
|
|
|
- hmiDNS.ipAddress = nameserver;
|
|
|
|
|
|
+
|
|
|
|
+ HMI_UpdatePopup {
|
|
|
|
+ id: updateHMI
|
|
|
|
+ popupVISIBLE: false
|
|
|
|
+ //: ID:_sys_update_hmi Headline HMI Updatewindow
|
|
|
|
+ popupTEXT: qsTrId("_sys_update_hmi") + transLoad.emptyString
|
|
}
|
|
}
|
|
|
|
|
|
- onCmdDone: {
|
|
|
|
- hmiIP.ipAddress = setEth0.address;
|
|
|
|
- hmiNETMASK.ipAddress = setEth0.netmask;
|
|
|
|
- hmiGATEWAY.ipAddress = setEth0.gateway;
|
|
|
|
- hmiDNS.ipAddress = setEth0.nameserver;
|
|
|
|
|
|
+ SetNetworkInterface {
|
|
|
|
+ id: setEth0
|
|
|
|
+ mode: "static"
|
|
|
|
+ ifacename: "eth0"
|
|
|
|
+ address: "192.168.0.125"
|
|
|
|
+ netmask: "255.255.0.0"
|
|
|
|
+ nameserver: "192.168.0.1"
|
|
|
|
+ gateway: "192.168.0.1"
|
|
|
|
+ infile: (sysinfo.currentCpuArchitecture == "x86_64") ?"/home/ru/IFACE/interfaces":"/etc/network/interfaces"
|
|
|
|
+ outfile: (sysinfo.currentCpuArchitecture == "x86_64") ?"/home/ru/IFACE/interfaces":"/etc/network/interfaces"
|
|
|
|
+
|
|
|
|
+ onAddressChanged: {
|
|
|
|
+ hmiIP.ipAddress = address;
|
|
|
|
+ }
|
|
|
|
+ onNetmaskChanged: {
|
|
|
|
+ hmiNETMASK.ipAddress = netmask;
|
|
|
|
+ }
|
|
|
|
+ onGatewayChanged: {
|
|
|
|
+ hmiGATEWAY.ipAddress = gateway;
|
|
|
|
+ }
|
|
|
|
+ onNameserverChanged: {
|
|
|
|
+ hmiDNS.ipAddress = nameserver;
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ onCmdDone: {
|
|
|
|
+ hmiIP.ipAddress = setEth0.address;
|
|
|
|
+ hmiNETMASK.ipAddress = setEth0.netmask;
|
|
|
|
+ hmiGATEWAY.ipAddress = setEth0.gateway;
|
|
|
|
+ hmiDNS.ipAddress = setEth0.nameserver;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//============================================================================
|
|
//============================================================================
|