.setwep Method

Function:

Causes the Wi-Fi interface to set new WEP mode and key. This method is an immediate task.

Syntax:

wln.setwep(byref wepkey as string, wepmode as pl_wln_wep_modes) as accepted_rejected

Returns:

One of accepted_rejected constants:

  • 0 — ACCEPTED
  • 1 — REJECTED

See Also:

Setting WEP Mode and Key, wln.setwpa


Part

Description

wepkey

A string containing the new WEP key. This is a "HEX string" — each character in the string represents one HEX digit. The string must contain 10 HEX digits for WEP64 and 26 HEX digits for WEP128. Any data in excess of these lengths is ignored. Missing digits are assumed to be 0.

wepmode

WEP mode to set:

  • 0 — PL_WLN_WEP_MODE_DISABLED: WEP is to be disabled
  • 1 — PL_WLN_WEP_MODE_64: 64-bit WEP is to be used
  • 2 — PL_WLN_WEP_MODE_128: 128-bit WEP is to be used