.Setwep Method

Top  Previous  Next

Function:

Causes the Wi-Fi interface to commence setting new WEP mode and key.

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 Tasks

wln.setwpa

 


Part

Description

wepkey

A string containing new WEP key. This is a "HEX strings" — each character in the string represents one HEX digit. The string must contain 10 HEX digits for WEP64 and 26 HEX digits for WEP128. Excessive digits are 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.

0- PL_WLN_WEP_MODE_128: 128-bit WEP is to be used.

Details

Changing WEP mode and keys is an immediate task and there is a certain correct way of handling tasks. "Immediate" means you don't have to wait for the task to complete — it is finished as soon as wln.setwep is done executing. The on_wln_task_complete event is still generated.