TwclWiFiInterface.SetStaticIp(string,string,string,string,string) Method
Sets current IP settings as static IP configuration.
public function SetStaticIp(const Address: string; const Mask: string; const Gateway: string; const Dns1: string; const Dns2: string): Integer;
Parameters
- Address
- Type: string
The current IP address.
- Mask
- Type: string
The subnet mask.
- Gateway
- Type: string
The default gateway address.
- Dns1
- Type: string
The first DNS server address.
- Dns2
- Type: string
The second DNS server address.
Return Value
Type: Integer
If the function succeed the return value is wclErrors.WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.