The wln. object supports two types of Wi-Fi security:
•WEP64 and WEP128 — a weak and old form of Wi-Fi protection.
•WPA-PSK and WPA2-PSK — two modern forms of Wi-Fi security (use WPA2 whenever possible). These security modes require the WLN library (or a lot of coding effort) to work correctly.
WEP and WPA security must be set before associating with the selected network or creating own ad-hoc network.