...
Code Block | ||
---|---|---|
| ||
/* Network parameters */
string ipToSet = "192.168.0.125";
string netmask = "255.255.255.0";
string gw = "192.168.0.1";
string dns0 = "0.0.0.0";
string dns1 = "0.0.0.0";
bool apply = true;
bool permanent = true;
/* set network parameters */
bool res = proto.SetNetworkParams(device, localIp, ipToSet, netmask, gw, dns0, dns1, apply, permanent, rwTimeout); |
...