accesssystempropertiesinscript

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
accesssystempropertiesinscript [2023/01/14 15:42]
wikiadmin
accesssystempropertiesinscript [2023/01/14 15:46] (current)
wikiadmin
Line 18: Line 18:
 ipAddress=System.getProperty("ipaddress","192.168.0.2"); //use a default value if the parameter "ipaddress" is not defined ipAddress=System.getProperty("ipaddress","192.168.0.2"); //use a default value if the parameter "ipaddress" is not defined
  
-//now the ipAddress can be used to set the ip address of a device server+//now the ipAddress value can be used to set the ip address of a device server
  
-DeviceServer->setAddress(ipaddress); //note: setAddress method may be setHostname in some device servers+DeviceServer->setAddress(ipAddress); //note: setAddress method may be setHostname in some device servers
  
 </code> </code>
Line 33: Line 33:
 if (ipAddress!=null) { if (ipAddress!=null) {
  
-   DeviceServer->setAddress(ipaddress);+   DeviceServer->setAddress(ipAddress);
 } }
  
 </code> </code>
  • accesssystempropertiesinscript.1673732538.txt.gz
  • Last modified: 2023/01/14 15:42
  • by wikiadmin