SetWAN

This function lets the user change the credentials used when using the operating system’s GPRS (cellular) settings to establish internet access.

Group: Server Extensions


Syntax: [bOK =] Server.SetWAN(bEnabled, [vWANName], [vUserID], [vPassword])

bOK                 (Boolean) Optional – is a return value; a value of True means the method processed normally.

bEnabled          (Boolean) enables or disables the configured WAN

vWANName      (Variant) Optional – is the name of the WAN as configured in the operating system

vUserID            (Variant) Optional – is the user ID to be used for making that WAN connection if it is different that the already configured user ID in the WAN setup

vPassword        (Variant) Optional – is the password to be used for making that WAN connection if it is different that the already configured password in the WAN setup

Example:

Dim bOK as Boolean

bOK = Server.SetWAN(True, "MyWAN")

Supported Versions:       RFgen 5.0 and newer.